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

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

If a planet has 3 moons, is it possible to have triple Full/New Moons at once?

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

How can I practically buy stocks?

How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?

Why must Chinese maps be obfuscated?

Symbolic Multivariate Distribution

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

How to reduce LED flash rate (frequency)

How can Zone of Truth be defeated without the caster knowing?

Pulling the rope with one hand is as heavy as with two hands?

Do I have an "anti-research" personality?

Combinable filters

How to write a column outside the braces in a matrix?

Could moose/elk survive in the Amazon forest?

Binary Numbers Magic Trick

Can someone publish a story that happened to you?

Is this homebrew Wind Wave spell balanced?

Refer to page numbers where table is referenced

How much cash can I safely carry into the USA and avoid civil forfeiture?

How to limit Drive Letters Windows assigns to new removable USB drives

Does Gita support doctrine of eternal cycle of birth and death for evil people?

What happened to Captain America in Endgame?

Apply MapThread to all but one variable



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







2















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





























    2















    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

























      2












      2








      2








      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 4 hours ago









      Tristan BerryTristan Berry

      111




      111






















          1 Answer
          1






          active

          oldest

          votes


















          4














          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









            4














            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




























              4














              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


























                4












                4








                4







                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 4 hours ago









                RinzwindRinzwind

                211k28406541




                211k28406541






























                    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

                    Щит и меч (фильм) Содержание Названия серий | Сюжет |...

                    Венесуэла на летних Олимпийских играх 2000 Содержание Состав...

                    Meter-Bus Содержание Параметры шины | Стандартизация |...