C'mon. We all do it. We never change server
(root) passwords because we think there really safe. But even the safe ones need changing every so often. I am the kind of person who is very forgetful if I do not write things down. So, as well as showing you how to change passwords for users on your server, I'm also noting it down for my use.
Read more on how to do it.
Lets change a user's password
Login to SSH
(as root) and type the following:
passwd username
Where
username is type the user you want to change. For example, if you have a user called 'james' you would type the following:
passwd james
It will then prompt you for a new password like so:
New UNIX password:
and obviously for security purposes it will ask you for the password again.
Once you're done, it will display this:
passwd: all authentication tokens updated successfully.
And that's it! If you're logged in as a normal user without root access, you can just type:
passwd
This command will automatically attempt to change the user's password you're logged in to via SSH. So if you're logged in as 'james', just type that command to change your password. You'll be asked for your current password first before you can change it to a new password.
SOCIAL BOOKMARK -
Posted by Steven Sullivan on 24th July, 2006 - 08:15:15 GMT
There are no comments. Why not be the first to comment?