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;
}







10















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?










share|improve this question




















  • 7





    It means "security Nirvana", that's what it means. ;)

    – lcd047
    May 6 '15 at 20:51


















10















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?










share|improve this question




















  • 7





    It means "security Nirvana", that's what it means. ;)

    – lcd047
    May 6 '15 at 20:51














10












10








10


7






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?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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














  • 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










2 Answers
2






active

oldest

votes


















9














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





share|improve this answer


























  • 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





    with targetpw the one of the other (target) user

    – x-yuri
    May 19 '17 at 12:20



















0














root ALL= (ALL) ALL



the root user can execute from all terminals
Acting All(any)users
Run all commands






share|improve this answer








New contributor



Mahendra bora is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






















    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    9














    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





    share|improve this answer


























    • 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





      with targetpw the one of the other (target) user

      – x-yuri
      May 19 '17 at 12:20
















    9














    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





    share|improve this answer


























    • 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





      with targetpw the one of the other (target) user

      – x-yuri
      May 19 '17 at 12:20














    9












    9








    9







    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





    share|improve this answer















    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






    share|improve this answer














    share|improve this answer



    share|improve this answer








    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





      with targetpw 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











    • @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





      with targetpw 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













    0














    root ALL= (ALL) ALL



    the root user can execute from all terminals
    Acting All(any)users
    Run all commands






    share|improve this answer








    New contributor



    Mahendra bora is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      0














      root ALL= (ALL) ALL



      the root user can execute from all terminals
      Acting All(any)users
      Run all commands






      share|improve this answer








      New contributor



      Mahendra bora is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















        0












        0








        0







        root ALL= (ALL) ALL



        the root user can execute from all terminals
        Acting All(any)users
        Run all commands






        share|improve this answer








        New contributor



        Mahendra bora is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        root ALL= (ALL) ALL



        the root user can execute from all terminals
        Acting All(any)users
        Run all commands







        share|improve this answer








        New contributor



        Mahendra bora is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.








        share|improve this answer



        share|improve this answer






        New contributor



        Mahendra bora is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.








        answered 15 mins ago









        Mahendra boraMahendra bora

        1




        1




        New contributor



        Mahendra bora is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.




        New contributor




        Mahendra bora is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.
































            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

            Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

            Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...