Find the answer to your Linux question:
Results 1 to 3 of 3
Hey, I'm trying change password by command: Code: usermod -p new_pass username But is a problem, when I try connect with that password is incorect. Then I whatch shadow file ...
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Posts
    2

    Question usermod -p problem

    Hey,

    I'm trying change password by command:
    Code:
    usermod -p new_pass username
    But is a problem, when I try connect with that password is incorect. Then I whatch shadow file and I found thant new password is not in code like another users who I created but not change password. Can anybody help with this command?

    Sorry for my english

  2. #2
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,072
    Hello and Welcome!

    Is there a reason why you're using usermod to change a password?
    Normally, you could just use
    Code:
    passwd username
    You'll be asked to enter the new password, then to enter it again to confirm.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  3. #3
    Just Joined!
    Join Date
    Jun 2011
    Posts
    2
    I know that command but I'm using script (ssh2 with php) so I need one command line.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •