How to revert configuration of chmod to run command as root again

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite
1












I did sudo chmod +x /usr/bin/docker to avoid write sudo in all commands of docker, but now I found some information where that solution has a security vulnerability, so I want to revert that to write sudo always when I want to use some docker commands.
Someone can help me? Thanks a loot!










share|improve this question





















  • There is no way to revert or undo what you did. However, if all you did was add the executable bit, then simply remove the executable bit: sudo chmod -x /usr/bin/docker. If you forgot to mention other commands or recursive flags, that command won't help.
    – user535733
    Feb 24 at 2:02














up vote
0
down vote

favorite
1












I did sudo chmod +x /usr/bin/docker to avoid write sudo in all commands of docker, but now I found some information where that solution has a security vulnerability, so I want to revert that to write sudo always when I want to use some docker commands.
Someone can help me? Thanks a loot!










share|improve this question





















  • There is no way to revert or undo what you did. However, if all you did was add the executable bit, then simply remove the executable bit: sudo chmod -x /usr/bin/docker. If you forgot to mention other commands or recursive flags, that command won't help.
    – user535733
    Feb 24 at 2:02












up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





I did sudo chmod +x /usr/bin/docker to avoid write sudo in all commands of docker, but now I found some information where that solution has a security vulnerability, so I want to revert that to write sudo always when I want to use some docker commands.
Someone can help me? Thanks a loot!










share|improve this question













I did sudo chmod +x /usr/bin/docker to avoid write sudo in all commands of docker, but now I found some information where that solution has a security vulnerability, so I want to revert that to write sudo always when I want to use some docker commands.
Someone can help me? Thanks a loot!







16.04 chmod docker






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 23 at 23:13









Carlos Andres

33




33











  • There is no way to revert or undo what you did. However, if all you did was add the executable bit, then simply remove the executable bit: sudo chmod -x /usr/bin/docker. If you forgot to mention other commands or recursive flags, that command won't help.
    – user535733
    Feb 24 at 2:02
















  • There is no way to revert or undo what you did. However, if all you did was add the executable bit, then simply remove the executable bit: sudo chmod -x /usr/bin/docker. If you forgot to mention other commands or recursive flags, that command won't help.
    – user535733
    Feb 24 at 2:02















There is no way to revert or undo what you did. However, if all you did was add the executable bit, then simply remove the executable bit: sudo chmod -x /usr/bin/docker. If you forgot to mention other commands or recursive flags, that command won't help.
– user535733
Feb 24 at 2:02




There is no way to revert or undo what you did. However, if all you did was add the executable bit, then simply remove the executable bit: sudo chmod -x /usr/bin/docker. If you forgot to mention other commands or recursive flags, that command won't help.
– user535733
Feb 24 at 2:02










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










sudo chmod -x /usr/bin/docker


Would be the antithesis.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009180%2fhow-to-revert-configuration-of-chmod-to-run-command-as-root-again%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    sudo chmod -x /usr/bin/docker


    Would be the antithesis.






    share|improve this answer
























      up vote
      1
      down vote



      accepted










      sudo chmod -x /usr/bin/docker


      Would be the antithesis.






      share|improve this answer






















        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        sudo chmod -x /usr/bin/docker


        Would be the antithesis.






        share|improve this answer












        sudo chmod -x /usr/bin/docker


        Would be the antithesis.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 23 at 23:15









        dpb

        4,90911545




        4,90911545



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009180%2fhow-to-revert-configuration-of-chmod-to-run-command-as-root-again%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491