Unable to change user password on AWS using `passwd` commandHow to run a server on port 80 as a normal user...

ArcGIS not connecting to PostgreSQL db with all upper-case name

How do I implement a file system driver driver in Linux?

Engineer refusing to file/disclose patents

When quoting, must I also copy hyphens used to divide words that continue on the next line?

We have a love-hate relationship

Why did the EU agree to delay the Brexit deadline?

Can the Supreme Court overturn an impeachment?

How can "mimic phobia" be cured or prevented?

Can somebody explain Brexit in a few child-proof sentences?

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Greatest common substring

THT: What is a squared annular “ring”?

What is this type of notehead called?

Difference between -| and |- in TikZ

My friend sent me a screenshot of a transaction hash, but when I search for it I find divergent data. What happened?

Create all possible words using a set or letters

Greco-Roman egalitarianism

Is XSS in canonical link possible?

How to align and center standalone amsmath equations?

Freedom of speech and where it applies

Could solar power be utilized and substitute coal in the 19th Century

Frequency of inspection at vegan restaurants

Open a doc from terminal, but not by its name

What does this horizontal bar at the first measure mean?



Unable to change user password on AWS using `passwd` command


How to run a server on port 80 as a normal user on Linux?how to disable SSH login with password for some users?sudo asks me for passwordLog all commands run by admins on production serversCentOS lost Root AccessHow can I implement ansible with per-host passwords, securely?Cent OS unable to login after passwdHow to sudo another user without passwordsetting up root password in aws linux instanceUnable to change ldap client password(RHEL 7)













0















I am using Amazon's AWS insances running CentOS. I was trying to create a user with SUDO privilege and then disable the Root login to secure the systems. I have already done the required to bring this into effect but am now stuck with a problem I failed to understand.



When I created a User (say ABC) I did not set a password for it. Instead I use RSA Keys for authentication purpose.



Then I used visudo command and added ABC ALL=(ALL) ALL to the bottom of the file to give sudo privilege to this user.



Then I opened /etc/ssh/sshd_config in vi and turned PermitRootLogin to no and restart sshd. this is to disable root access.



I was expecting this to be it, i.e. disabling root login and having ABC do all the required administrative task. But am badly stuck now.



My Problem is when I login a ABC and try to sudo any command, it is asking for user passsword. This user does not have a password but a RSA Key with it, which i dont think can be used with SUDO.



I tried setting a password for this user using passwd command. Thats does not work either. Am getting following error.



$ passwd
Changing password for user kagzisa.
Changing password for kagzisa
(current) UNIX password:
passwd: Authentication token manipulation error


I am just pressing enter key when it prompts for current password as there is no current password specified.



Now I am stuck as I have got the Root login disabled and am not able to sudo any commands from ABC. I cant loose this system as there are some important process running on it.



Is there a way through which I can fix this. Either by reactivating root or by able to sudo commands?










share|improve this question














bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






migrated from stackoverflow.com Oct 26 '11 at 14:07


This question came from our site for professional and enthusiast programmers.



















  • I believe this question is for superuser.com

    – 4e6
    Oct 24 '11 at 8:18
















0















I am using Amazon's AWS insances running CentOS. I was trying to create a user with SUDO privilege and then disable the Root login to secure the systems. I have already done the required to bring this into effect but am now stuck with a problem I failed to understand.



When I created a User (say ABC) I did not set a password for it. Instead I use RSA Keys for authentication purpose.



Then I used visudo command and added ABC ALL=(ALL) ALL to the bottom of the file to give sudo privilege to this user.



Then I opened /etc/ssh/sshd_config in vi and turned PermitRootLogin to no and restart sshd. this is to disable root access.



I was expecting this to be it, i.e. disabling root login and having ABC do all the required administrative task. But am badly stuck now.



My Problem is when I login a ABC and try to sudo any command, it is asking for user passsword. This user does not have a password but a RSA Key with it, which i dont think can be used with SUDO.



I tried setting a password for this user using passwd command. Thats does not work either. Am getting following error.



$ passwd
Changing password for user kagzisa.
Changing password for kagzisa
(current) UNIX password:
passwd: Authentication token manipulation error


I am just pressing enter key when it prompts for current password as there is no current password specified.



Now I am stuck as I have got the Root login disabled and am not able to sudo any commands from ABC. I cant loose this system as there are some important process running on it.



Is there a way through which I can fix this. Either by reactivating root or by able to sudo commands?










share|improve this question














bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






migrated from stackoverflow.com Oct 26 '11 at 14:07


This question came from our site for professional and enthusiast programmers.



















  • I believe this question is for superuser.com

    – 4e6
    Oct 24 '11 at 8:18














0












0








0








I am using Amazon's AWS insances running CentOS. I was trying to create a user with SUDO privilege and then disable the Root login to secure the systems. I have already done the required to bring this into effect but am now stuck with a problem I failed to understand.



When I created a User (say ABC) I did not set a password for it. Instead I use RSA Keys for authentication purpose.



Then I used visudo command and added ABC ALL=(ALL) ALL to the bottom of the file to give sudo privilege to this user.



Then I opened /etc/ssh/sshd_config in vi and turned PermitRootLogin to no and restart sshd. this is to disable root access.



I was expecting this to be it, i.e. disabling root login and having ABC do all the required administrative task. But am badly stuck now.



My Problem is when I login a ABC and try to sudo any command, it is asking for user passsword. This user does not have a password but a RSA Key with it, which i dont think can be used with SUDO.



I tried setting a password for this user using passwd command. Thats does not work either. Am getting following error.



$ passwd
Changing password for user kagzisa.
Changing password for kagzisa
(current) UNIX password:
passwd: Authentication token manipulation error


I am just pressing enter key when it prompts for current password as there is no current password specified.



Now I am stuck as I have got the Root login disabled and am not able to sudo any commands from ABC. I cant loose this system as there are some important process running on it.



Is there a way through which I can fix this. Either by reactivating root or by able to sudo commands?










share|improve this question














I am using Amazon's AWS insances running CentOS. I was trying to create a user with SUDO privilege and then disable the Root login to secure the systems. I have already done the required to bring this into effect but am now stuck with a problem I failed to understand.



When I created a User (say ABC) I did not set a password for it. Instead I use RSA Keys for authentication purpose.



Then I used visudo command and added ABC ALL=(ALL) ALL to the bottom of the file to give sudo privilege to this user.



Then I opened /etc/ssh/sshd_config in vi and turned PermitRootLogin to no and restart sshd. this is to disable root access.



I was expecting this to be it, i.e. disabling root login and having ABC do all the required administrative task. But am badly stuck now.



My Problem is when I login a ABC and try to sudo any command, it is asking for user passsword. This user does not have a password but a RSA Key with it, which i dont think can be used with SUDO.



I tried setting a password for this user using passwd command. Thats does not work either. Am getting following error.



$ passwd
Changing password for user kagzisa.
Changing password for kagzisa
(current) UNIX password:
passwd: Authentication token manipulation error


I am just pressing enter key when it prompts for current password as there is no current password specified.



Now I am stuck as I have got the Root login disabled and am not able to sudo any commands from ABC. I cant loose this system as there are some important process running on it.



Is there a way through which I can fix this. Either by reactivating root or by able to sudo commands?







linux unix centos sudo passwd






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 23 '11 at 10:34







Salman A. Kagzi












bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






migrated from stackoverflow.com Oct 26 '11 at 14:07


This question came from our site for professional and enthusiast programmers.









migrated from stackoverflow.com Oct 26 '11 at 14:07


This question came from our site for professional and enthusiast programmers.















  • I believe this question is for superuser.com

    – 4e6
    Oct 24 '11 at 8:18



















  • I believe this question is for superuser.com

    – 4e6
    Oct 24 '11 at 8:18

















I believe this question is for superuser.com

– 4e6
Oct 24 '11 at 8:18





I believe this question is for superuser.com

– 4e6
Oct 24 '11 at 8:18










1 Answer
1






active

oldest

votes


















0














You should probably use NOPASSWORD tag in visudo so it won't ask you for any password.
ABC ALL = NOPASSWD: ALL






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "2"
    };
    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%2fserverfault.com%2fquestions%2f324938%2funable-to-change-user-password-on-aws-using-passwd-command%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









    0














    You should probably use NOPASSWORD tag in visudo so it won't ask you for any password.
    ABC ALL = NOPASSWD: ALL






    share|improve this answer




























      0














      You should probably use NOPASSWORD tag in visudo so it won't ask you for any password.
      ABC ALL = NOPASSWD: ALL






      share|improve this answer


























        0












        0








        0







        You should probably use NOPASSWORD tag in visudo so it won't ask you for any password.
        ABC ALL = NOPASSWD: ALL






        share|improve this answer













        You should probably use NOPASSWORD tag in visudo so it won't ask you for any password.
        ABC ALL = NOPASSWD: ALL







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 26 '11 at 14:27









        MichaelMichael

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Server Fault!


            • 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%2fserverfault.com%2fquestions%2f324938%2funable-to-change-user-password-on-aws-using-passwd-command%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

            As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

            Список ссавців Італії Природоохоронні статуси | Список |...

            Українські прізвища Зміст Історичні відомості |...