what is the sudo password for a --disabled-password usersudo not asking for password of correct userGithub...

A Strange Latex Symbol

How to stop co-workers from teasing me because I know Russian?

French for 'It must be my imagination'?

Does a semiconductor follow Ohm's law?

Examples of subgroups where it's nontrivial to show closure under multiplication?

US visa is under administrative processing, I need the passport back ASAP

Document starts having heaps of errors in the middle, but the code doesn't have any problems in it

Mac Pro install disk keeps ejecting itself

What language was spoken in East Asia before Proto-Turkic?

Why do games have consumables?

What was the first Intel x86 processor with "Base + Index * Scale + Displacement" addressing mode?

Do I have to worry about players making “bad” choices on level up?

Packing rectangles: Does rotation ever help?

How can I practically buy stocks?

Controversial area of mathematics

How exactly does Hawking radiation decrease the mass of black holes?

How do I deal with a coworker that keeps asking to make small superficial changes to a report, and it is seriously triggering my anxiety?

What route did the Hindenburg take when traveling from Germany to the U.S.?

Critique of timeline aesthetic

How can I place the product on a social media post better?

Exchange,swap or switch

Do I have an "anti-research" personality?

Sci fi novel series with instant travel between planets through gates. A river runs through the gates

Adjust deraillers after changing chain?



what is the sudo password for a --disabled-password user


sudo not asking for password of correct userGithub ask for Username & password after Configure ssh?sudo asks for root password but expects user in sudoers?how can i find out my password for root since i am not a sudo user?Sudo is not asking for password on Ubuntu 16.04Copy public key to second remote user with password authentication disabledProblem with my sudo passwordCannot login the new user I created, showing Permission denied (publickey) without asking for passwordMake sudo not ask for password for n minutes after loginUbuntu 18.10: Ubuntu Software Center asking for authentication when (username) has no password






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







4















I have created an account on ubuntu with the --disabled-password flag.



When I login to this account through ssh using public key authentication, and do a sudo command like apt install, sudo asks for a password. Although I do not know what it is because I disabled the password on the account.



What is the password for sudo on a disabled-password account?










share|improve this question





























    4















    I have created an account on ubuntu with the --disabled-password flag.



    When I login to this account through ssh using public key authentication, and do a sudo command like apt install, sudo asks for a password. Although I do not know what it is because I disabled the password on the account.



    What is the password for sudo on a disabled-password account?










    share|improve this question

























      4












      4








      4








      I have created an account on ubuntu with the --disabled-password flag.



      When I login to this account through ssh using public key authentication, and do a sudo command like apt install, sudo asks for a password. Although I do not know what it is because I disabled the password on the account.



      What is the password for sudo on a disabled-password account?










      share|improve this question














      I have created an account on ubuntu with the --disabled-password flag.



      When I login to this account through ssh using public key authentication, and do a sudo command like apt install, sudo asks for a password. Although I do not know what it is because I disabled the password on the account.



      What is the password for sudo on a disabled-password account?







      ssh login sudo password






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 14 hours ago









      Tristan BerryTristan Berry

      211




      211






















          1 Answer
          1






          active

          oldest

          votes


















          6














          That wont fly... you need a password for the sudo user to be able to disable the sudo password. So that goes the other way round: 1st disable sudo pwd then disabled-password. And I suggest NEVER to do this kind of action w/o a backup sudo user. Leave the 1st sudo user as is. Maybe with a good password (64 chars you generate randomly and store that in an safe). Use a 2nd sudo account to set your method up. That way you can use your 1st sudoer as a fallback.



          And you need



          {user} ALL=(ALL) NOPASSWD:ALL 


          in



          /etc/sudoers.d/{user}


          If you can't un-disable you can use live session to edit the sudoers file.






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


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1138594%2fwhat-is-the-sudo-password-for-a-disabled-password-user%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









            6














            That wont fly... you need a password for the sudo user to be able to disable the sudo password. So that goes the other way round: 1st disable sudo pwd then disabled-password. And I suggest NEVER to do this kind of action w/o a backup sudo user. Leave the 1st sudo user as is. Maybe with a good password (64 chars you generate randomly and store that in an safe). Use a 2nd sudo account to set your method up. That way you can use your 1st sudoer as a fallback.



            And you need



            {user} ALL=(ALL) NOPASSWD:ALL 


            in



            /etc/sudoers.d/{user}


            If you can't un-disable you can use live session to edit the sudoers file.






            share|improve this answer




























              6














              That wont fly... you need a password for the sudo user to be able to disable the sudo password. So that goes the other way round: 1st disable sudo pwd then disabled-password. And I suggest NEVER to do this kind of action w/o a backup sudo user. Leave the 1st sudo user as is. Maybe with a good password (64 chars you generate randomly and store that in an safe). Use a 2nd sudo account to set your method up. That way you can use your 1st sudoer as a fallback.



              And you need



              {user} ALL=(ALL) NOPASSWD:ALL 


              in



              /etc/sudoers.d/{user}


              If you can't un-disable you can use live session to edit the sudoers file.






              share|improve this answer


























                6












                6








                6







                That wont fly... you need a password for the sudo user to be able to disable the sudo password. So that goes the other way round: 1st disable sudo pwd then disabled-password. And I suggest NEVER to do this kind of action w/o a backup sudo user. Leave the 1st sudo user as is. Maybe with a good password (64 chars you generate randomly and store that in an safe). Use a 2nd sudo account to set your method up. That way you can use your 1st sudoer as a fallback.



                And you need



                {user} ALL=(ALL) NOPASSWD:ALL 


                in



                /etc/sudoers.d/{user}


                If you can't un-disable you can use live session to edit the sudoers file.






                share|improve this answer













                That wont fly... you need a password for the sudo user to be able to disable the sudo password. So that goes the other way round: 1st disable sudo pwd then disabled-password. And I suggest NEVER to do this kind of action w/o a backup sudo user. Leave the 1st sudo user as is. Maybe with a good password (64 chars you generate randomly and store that in an safe). Use a 2nd sudo account to set your method up. That way you can use your 1st sudoer as a fallback.



                And you need



                {user} ALL=(ALL) NOPASSWD:ALL 


                in



                /etc/sudoers.d/{user}


                If you can't un-disable you can use live session to edit the sudoers file.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 13 hours ago









                RinzwindRinzwind

                212k28406541




                212k28406541






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f1138594%2fwhat-is-the-sudo-password-for-a-disabled-password-user%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

                    Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                    Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                    Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...