What does “ALL ALL=(ALL) ALL” mean in sudoers?Trying to understand the difference between “modernNeo...
Which creatures count as green creatures?
What do teaching faculty do during semester breaks?
Where to place an artificial gland in the human body?
Current relevance: "She has broken her leg" vs. "She broke her leg yesterday"
What should I say when a company asks you why someone (a friend) who was fired left?
Why is chess failing to attract big name sponsors?
Do Rabbis get punished in Heaven for wrong interpretations or claims?
Moving files accidentally to an not existing directory erases files?
How can I tell if there was a power cut while I was out?
What is a Union Word™?
Why are off grid solar setups only 12, 24, 48 VDC?
Terence Tao - type books in other fields?
How do campaign rallies gain candidates votes?
A planet illuminated by a black hole?
This message is flooding my syslog, how to find where it comes from?
What is a reasonable time for modern human society to adapt to dungeons?
What is the life span of a Flerken?
How to write a sincerely religious protagonist without preaching or affirming or judging their worldview?
How do professional electronic musicians/sound engineers combat listening fatigue?
The seven story archetypes. Are they truly all of them?
Closet Wall, is it Load Bearing?
Marketing Cloud Query Activity is not pulling in data for newly added fields to target Data Extension
USA: Can a witness take the 5th to avoid perjury?
What does Kasparov mean here?
What does “ALL ALL=(ALL) ALL” mean in sudoers?
Trying to understand the difference between “modernNeo ALL=(ALL:ALL) ALL” and “modernNeo ALL=(ALL) ALL” in the sudoers fileusing sudo on GUI applicationsWhat is “ALL ALL=!SUDOSUDO” for?What are the parameters in sudoers fileUse current user environment variable in sudoers fileUser can sudo although he is not in sudo group nor in /etc/sudoersChecking sudoers without root?ALL =(ALL) ALL - does the third ALL give them all access?What does “sudo -v” stands for in the sudoers-man-page“ALL ALL=(ALL) NOPASSWD:ALL” was auto added in my /etc/sudoers file. Is this a Security Breach?What do the lines for root, sudo and wheel in sudoers mean?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
If a server has the following in /etc/sudoers:
Defaults targetpw
ALL ALL=(ALL) ALL
Then what does this mean? all the users can sudo to all the commands, only their password is needed?
sudo
add a comment |
If a server has the following in /etc/sudoers:
Defaults targetpw
ALL ALL=(ALL) ALL
Then what does this mean? all the users can sudo to all the commands, only their password is needed?
sudo
7
It means "security Nirvana", that's what it means. ;)
– lcd047
May 6 '15 at 20:51
add a comment |
If a server has the following in /etc/sudoers:
Defaults targetpw
ALL ALL=(ALL) ALL
Then what does this mean? all the users can sudo to all the commands, only their password is needed?
sudo
If a server has the following in /etc/sudoers:
Defaults targetpw
ALL ALL=(ALL) ALL
Then what does this mean? all the users can sudo to all the commands, only their password is needed?
sudo
sudo
edited May 7 '15 at 16:37
LoukiosValentine79
asked May 6 '15 at 19:29
LoukiosValentine79LoukiosValentine79
4792 gold badges11 silver badges35 bronze badges
4792 gold badges11 silver badges35 bronze badges
7
It means "security Nirvana", that's what it means. ;)
– lcd047
May 6 '15 at 20:51
add a comment |
7
It means "security Nirvana", that's what it means. ;)
– lcd047
May 6 '15 at 20:51
7
7
It means "security Nirvana", that's what it means. ;)
– lcd047
May 6 '15 at 20:51
It means "security Nirvana", that's what it means. ;)
– lcd047
May 6 '15 at 20:51
add a comment |
2 Answers
2
active
oldest
votes
From the sudoers(5)
man page:
The sudoers policy plugin determines a user's sudo privileges.
For the targetpw:
sudo will prompt for the password of the user specified by the -u option (defaults to root) instead of the password of the invoking user when running a command or editing a file.
sudo(8)
allows you to execute commands as someone else
So, basically it says that any user can run any command on any host as any user and yes, the user just has to authenticate, but with the password of the other user, in order to run anything.
The first ALL is the users allowed
The second one is the hosts
The third one is the user as you are running the command
The last one is the commands allowed
Thanks! In the meantime I found the "Defaults targetpw" entry in sudoers.. updated the Q
– LoukiosValentine79
May 7 '15 at 16:37
@LoukiosValentine79 I just update the answer, does that answer your question?
– poz2k4444
May 7 '15 at 18:24
wait he has to enter his own password not of the other user right?
– evan54
Feb 28 '16 at 20:24
1
withtargetpw
the one of the other (target) user
– x-yuri
May 19 '17 at 12:20
add a comment |
root ALL= (ALL) ALL
the root user can execute from all terminals
Acting All(any)users
Run all commands
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f201858%2fwhat-does-all-all-all-all-mean-in-sudoers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
From the sudoers(5)
man page:
The sudoers policy plugin determines a user's sudo privileges.
For the targetpw:
sudo will prompt for the password of the user specified by the -u option (defaults to root) instead of the password of the invoking user when running a command or editing a file.
sudo(8)
allows you to execute commands as someone else
So, basically it says that any user can run any command on any host as any user and yes, the user just has to authenticate, but with the password of the other user, in order to run anything.
The first ALL is the users allowed
The second one is the hosts
The third one is the user as you are running the command
The last one is the commands allowed
Thanks! In the meantime I found the "Defaults targetpw" entry in sudoers.. updated the Q
– LoukiosValentine79
May 7 '15 at 16:37
@LoukiosValentine79 I just update the answer, does that answer your question?
– poz2k4444
May 7 '15 at 18:24
wait he has to enter his own password not of the other user right?
– evan54
Feb 28 '16 at 20:24
1
withtargetpw
the one of the other (target) user
– x-yuri
May 19 '17 at 12:20
add a comment |
From the sudoers(5)
man page:
The sudoers policy plugin determines a user's sudo privileges.
For the targetpw:
sudo will prompt for the password of the user specified by the -u option (defaults to root) instead of the password of the invoking user when running a command or editing a file.
sudo(8)
allows you to execute commands as someone else
So, basically it says that any user can run any command on any host as any user and yes, the user just has to authenticate, but with the password of the other user, in order to run anything.
The first ALL is the users allowed
The second one is the hosts
The third one is the user as you are running the command
The last one is the commands allowed
Thanks! In the meantime I found the "Defaults targetpw" entry in sudoers.. updated the Q
– LoukiosValentine79
May 7 '15 at 16:37
@LoukiosValentine79 I just update the answer, does that answer your question?
– poz2k4444
May 7 '15 at 18:24
wait he has to enter his own password not of the other user right?
– evan54
Feb 28 '16 at 20:24
1
withtargetpw
the one of the other (target) user
– x-yuri
May 19 '17 at 12:20
add a comment |
From the sudoers(5)
man page:
The sudoers policy plugin determines a user's sudo privileges.
For the targetpw:
sudo will prompt for the password of the user specified by the -u option (defaults to root) instead of the password of the invoking user when running a command or editing a file.
sudo(8)
allows you to execute commands as someone else
So, basically it says that any user can run any command on any host as any user and yes, the user just has to authenticate, but with the password of the other user, in order to run anything.
The first ALL is the users allowed
The second one is the hosts
The third one is the user as you are running the command
The last one is the commands allowed
From the sudoers(5)
man page:
The sudoers policy plugin determines a user's sudo privileges.
For the targetpw:
sudo will prompt for the password of the user specified by the -u option (defaults to root) instead of the password of the invoking user when running a command or editing a file.
sudo(8)
allows you to execute commands as someone else
So, basically it says that any user can run any command on any host as any user and yes, the user just has to authenticate, but with the password of the other user, in order to run anything.
The first ALL is the users allowed
The second one is the hosts
The third one is the user as you are running the command
The last one is the commands allowed
edited May 7 '15 at 18:23
answered May 6 '15 at 20:19
poz2k4444poz2k4444
2251 silver badge11 bronze badges
2251 silver badge11 bronze badges
Thanks! In the meantime I found the "Defaults targetpw" entry in sudoers.. updated the Q
– LoukiosValentine79
May 7 '15 at 16:37
@LoukiosValentine79 I just update the answer, does that answer your question?
– poz2k4444
May 7 '15 at 18:24
wait he has to enter his own password not of the other user right?
– evan54
Feb 28 '16 at 20:24
1
withtargetpw
the one of the other (target) user
– x-yuri
May 19 '17 at 12:20
add a comment |
Thanks! In the meantime I found the "Defaults targetpw" entry in sudoers.. updated the Q
– LoukiosValentine79
May 7 '15 at 16:37
@LoukiosValentine79 I just update the answer, does that answer your question?
– poz2k4444
May 7 '15 at 18:24
wait he has to enter his own password not of the other user right?
– evan54
Feb 28 '16 at 20:24
1
withtargetpw
the one of the other (target) user
– x-yuri
May 19 '17 at 12:20
Thanks! In the meantime I found the "Defaults targetpw" entry in sudoers.. updated the Q
– LoukiosValentine79
May 7 '15 at 16:37
Thanks! In the meantime I found the "Defaults targetpw" entry in sudoers.. updated the Q
– LoukiosValentine79
May 7 '15 at 16:37
@LoukiosValentine79 I just update the answer, does that answer your question?
– poz2k4444
May 7 '15 at 18:24
@LoukiosValentine79 I just update the answer, does that answer your question?
– poz2k4444
May 7 '15 at 18:24
wait he has to enter his own password not of the other user right?
– evan54
Feb 28 '16 at 20:24
wait he has to enter his own password not of the other user right?
– evan54
Feb 28 '16 at 20:24
1
1
with
targetpw
the one of the other (target) user– x-yuri
May 19 '17 at 12:20
with
targetpw
the one of the other (target) user– x-yuri
May 19 '17 at 12:20
add a comment |
root ALL= (ALL) ALL
the root user can execute from all terminals
Acting All(any)users
Run all commands
New contributor
add a comment |
root ALL= (ALL) ALL
the root user can execute from all terminals
Acting All(any)users
Run all commands
New contributor
add a comment |
root ALL= (ALL) ALL
the root user can execute from all terminals
Acting All(any)users
Run all commands
New contributor
root ALL= (ALL) ALL
the root user can execute from all terminals
Acting All(any)users
Run all commands
New contributor
New contributor
answered 15 mins ago
Mahendra boraMahendra bora
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f201858%2fwhat-does-all-all-all-all-mean-in-sudoers%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
7
It means "security Nirvana", that's what it means. ;)
– lcd047
May 6 '15 at 20:51