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 ...
- 06-10-2011 #1Just Joined!
- Join Date
- Jun 2011
- Posts
- 2
usermod -p problem
Hey,
I'm trying change password by command:
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?Code:usermod -p new_pass username
Sorry for my english
- 06-10-2011 #2
Hello and Welcome!

Is there a reason why you're using usermod to change a password?
Normally, you could just use
You'll be asked to enter the new password, then to enter it again to confirm.Code:passwd username
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.
- 06-11-2011 #3Just 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.


Reply With Quote
