Sunday, April 18, 2010

How to setup/change password in a command line

If changing your own password you just need to run in the terminal this:

passwd

and you will be prompted to enter your current password. Once you do this successfully you need to enter twice the new password.

You may also need to setup one or change the password for another user. Then of course you need to login as root and run the following:

passwd user_name

where user_name is the username of the user in question. The system prompts you to enter the password twice, and that's it.

No comments:

Post a Comment