How to set permissions for application in LinuxWhy does Linux Ubuntu/Mint lack a root account?How to restore...
Deal the cards to the players
Is every open circuit a capacitor?
How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?
Can a Mexican citizen living in US under DACA drive to Canada?
Does the US political system, in principle, allow for a no-party system?
Are small insurances worth it
How do you make a gun that shoots melee weapons and/or swords?
Dukha vs legitimate need
Is being socially reclusive okay for a graduate student?
What is better: yes / no radio, or simple checkbox?
Is there a math equivalent to the conditional ternary operator?
Convert an array of objects to array of the objects' values
In the world of The Matrix, what is "popping"?
Do natural melee weapons (from racial traits) trigger Improved Divine Smite?
What does it mean when I add a new variable to my linear model and the R^2 stays the same?
Iron deposits mined from under the city
What is the meaning of option 'by' in TikZ Intersections
I've given my players a lot of magic items. Is it reasonable for me to give them harder encounters?
Remove object from array based on array of some property of that object
Can a space-faring robot still function over a billion years?
The (Easy) Road to Code
Why won't the strings command stop?
Why would the IRS ask for birth certificates or even audit a small tax return?
Can a Mimic (container form) actually hold loot?
How to set permissions for application in Linux
Why does Linux Ubuntu/Mint lack a root account?How to restore sudo privilege with Linux live CD?Does Linux Mint provide sames packages as Ubuntu?Grant root permissions to application, so won't prompt againChmod not working on /var/www/Why do linux packages expect root permissions to install?Do online repositories for ubuntu/mint releases disappear after it goes out of support?Cannot change the desktop wallpaper in Ubuntu 14.04Why can't my computer resolve archive.ubuntu.com?Trying to install Owncloud client on Linux Mint Rosa Fails
I have a quick question: suppose that, as root (or a user with high privileges), I install some package by running sudo apt-get install somepackage. Is there a way to block other users from launching somepackage in Ubuntu/Linux Mint? If so, can it be done with packages built from source as well?
Any help will be appreciated :)
linux ubuntu permissions linux-mint packages
bumped to the homepage by Community♦ 23 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have a quick question: suppose that, as root (or a user with high privileges), I install some package by running sudo apt-get install somepackage. Is there a way to block other users from launching somepackage in Ubuntu/Linux Mint? If so, can it be done with packages built from source as well?
Any help will be appreciated :)
linux ubuntu permissions linux-mint packages
bumped to the homepage by Community♦ 23 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Can you be more specific about why you would want to do this? This is a bit of an unusual request. There may be better alternatives in some situations, but I don't want to add answers that would be irrelevant.
– Zoredache
Sep 7 '17 at 6:51
add a comment |
I have a quick question: suppose that, as root (or a user with high privileges), I install some package by running sudo apt-get install somepackage. Is there a way to block other users from launching somepackage in Ubuntu/Linux Mint? If so, can it be done with packages built from source as well?
Any help will be appreciated :)
linux ubuntu permissions linux-mint packages
I have a quick question: suppose that, as root (or a user with high privileges), I install some package by running sudo apt-get install somepackage. Is there a way to block other users from launching somepackage in Ubuntu/Linux Mint? If so, can it be done with packages built from source as well?
Any help will be appreciated :)
linux ubuntu permissions linux-mint packages
linux ubuntu permissions linux-mint packages
asked Sep 7 '17 at 2:51
Samuel AlonsoSamuel Alonso
11
11
bumped to the homepage by Community♦ 23 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 23 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Can you be more specific about why you would want to do this? This is a bit of an unusual request. There may be better alternatives in some situations, but I don't want to add answers that would be irrelevant.
– Zoredache
Sep 7 '17 at 6:51
add a comment |
Can you be more specific about why you would want to do this? This is a bit of an unusual request. There may be better alternatives in some situations, but I don't want to add answers that would be irrelevant.
– Zoredache
Sep 7 '17 at 6:51
Can you be more specific about why you would want to do this? This is a bit of an unusual request. There may be better alternatives in some situations, but I don't want to add answers that would be irrelevant.
– Zoredache
Sep 7 '17 at 6:51
Can you be more specific about why you would want to do this? This is a bit of an unusual request. There may be better alternatives in some situations, but I don't want to add answers that would be irrelevant.
– Zoredache
Sep 7 '17 at 6:51
add a comment |
1 Answer
1
active
oldest
votes
This is accomplished by setting the file permissions using the chmod command. In your case, you'll need to find the primary executable file for somepackage and run chmod og-rwx somepackage you'll probably want to set yourself as the owner so you can still use it with the following chown <your-user-name> somepackage. If it's owned by root, don't forget to sudo.
Updated per xenoid's comment to disallow anyone from copying the file and changing permissions on this file. tested on macOS 10.12.
1
Not enough.... someone could still copy the file elsewhere and change the execution flag of the copy. You must make the file unreadable as well.
– xenoid
Sep 7 '17 at 7:30
chmod 640 /path/to/sompackage or /path/to/somefile ; sudo chmod +i /path/to/somepackage or /path/to/somefile ( the chmod +i enables the immutable bit once set as desired only someone in the packages' primary owner group would be able to change this, similar to a .lock file
– linuxdev2013
22 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1248100%2fhow-to-set-permissions-for-application-in-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is accomplished by setting the file permissions using the chmod command. In your case, you'll need to find the primary executable file for somepackage and run chmod og-rwx somepackage you'll probably want to set yourself as the owner so you can still use it with the following chown <your-user-name> somepackage. If it's owned by root, don't forget to sudo.
Updated per xenoid's comment to disallow anyone from copying the file and changing permissions on this file. tested on macOS 10.12.
1
Not enough.... someone could still copy the file elsewhere and change the execution flag of the copy. You must make the file unreadable as well.
– xenoid
Sep 7 '17 at 7:30
chmod 640 /path/to/sompackage or /path/to/somefile ; sudo chmod +i /path/to/somepackage or /path/to/somefile ( the chmod +i enables the immutable bit once set as desired only someone in the packages' primary owner group would be able to change this, similar to a .lock file
– linuxdev2013
22 hours ago
add a comment |
This is accomplished by setting the file permissions using the chmod command. In your case, you'll need to find the primary executable file for somepackage and run chmod og-rwx somepackage you'll probably want to set yourself as the owner so you can still use it with the following chown <your-user-name> somepackage. If it's owned by root, don't forget to sudo.
Updated per xenoid's comment to disallow anyone from copying the file and changing permissions on this file. tested on macOS 10.12.
1
Not enough.... someone could still copy the file elsewhere and change the execution flag of the copy. You must make the file unreadable as well.
– xenoid
Sep 7 '17 at 7:30
chmod 640 /path/to/sompackage or /path/to/somefile ; sudo chmod +i /path/to/somepackage or /path/to/somefile ( the chmod +i enables the immutable bit once set as desired only someone in the packages' primary owner group would be able to change this, similar to a .lock file
– linuxdev2013
22 hours ago
add a comment |
This is accomplished by setting the file permissions using the chmod command. In your case, you'll need to find the primary executable file for somepackage and run chmod og-rwx somepackage you'll probably want to set yourself as the owner so you can still use it with the following chown <your-user-name> somepackage. If it's owned by root, don't forget to sudo.
Updated per xenoid's comment to disallow anyone from copying the file and changing permissions on this file. tested on macOS 10.12.
This is accomplished by setting the file permissions using the chmod command. In your case, you'll need to find the primary executable file for somepackage and run chmod og-rwx somepackage you'll probably want to set yourself as the owner so you can still use it with the following chown <your-user-name> somepackage. If it's owned by root, don't forget to sudo.
Updated per xenoid's comment to disallow anyone from copying the file and changing permissions on this file. tested on macOS 10.12.
edited Sep 7 '17 at 17:54
answered Sep 7 '17 at 6:06
Phy51xPhy51x
663
663
1
Not enough.... someone could still copy the file elsewhere and change the execution flag of the copy. You must make the file unreadable as well.
– xenoid
Sep 7 '17 at 7:30
chmod 640 /path/to/sompackage or /path/to/somefile ; sudo chmod +i /path/to/somepackage or /path/to/somefile ( the chmod +i enables the immutable bit once set as desired only someone in the packages' primary owner group would be able to change this, similar to a .lock file
– linuxdev2013
22 hours ago
add a comment |
1
Not enough.... someone could still copy the file elsewhere and change the execution flag of the copy. You must make the file unreadable as well.
– xenoid
Sep 7 '17 at 7:30
chmod 640 /path/to/sompackage or /path/to/somefile ; sudo chmod +i /path/to/somepackage or /path/to/somefile ( the chmod +i enables the immutable bit once set as desired only someone in the packages' primary owner group would be able to change this, similar to a .lock file
– linuxdev2013
22 hours ago
1
1
Not enough.... someone could still copy the file elsewhere and change the execution flag of the copy. You must make the file unreadable as well.
– xenoid
Sep 7 '17 at 7:30
Not enough.... someone could still copy the file elsewhere and change the execution flag of the copy. You must make the file unreadable as well.
– xenoid
Sep 7 '17 at 7:30
chmod 640 /path/to/sompackage or /path/to/somefile ; sudo chmod +i /path/to/somepackage or /path/to/somefile ( the chmod +i enables the immutable bit once set as desired only someone in the packages' primary owner group would be able to change this, similar to a .lock file
– linuxdev2013
22 hours ago
chmod 640 /path/to/sompackage or /path/to/somefile ; sudo chmod +i /path/to/somepackage or /path/to/somefile ( the chmod +i enables the immutable bit once set as desired only someone in the packages' primary owner group would be able to change this, similar to a .lock file
– linuxdev2013
22 hours ago
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1248100%2fhow-to-set-permissions-for-application-in-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you be more specific about why you would want to do this? This is a bit of an unusual request. There may be better alternatives in some situations, but I don't want to add answers that would be irrelevant.
– Zoredache
Sep 7 '17 at 6:51