Passwords

From PCLinuxOSHelp Knowledge Base
Jump to: navigation, search

Resetting your username password]

With today’s technology, you can store your whole life on your hard drive! Without password protection, nothing is safe (not even this article!). ! To modify a user’s password or your own password in Linux or UNIX use the passwd command.

To change any users password, Login as the root user in a console window and type the command:

passwd username --> press return/enter key

You should now see the following lines

Changing password for user username --> press return/enter key

New password: --> Enter your new password. NOTE: Your password will not show on the screen. press return/enter key

Retype new password: --> Enter your new password again. NOTE: Your password will not show on the screen. press return/enter key

passwd all authentication tokens updated successfully.

Change-password-anyuser.png

To Change Your Own Password or as a normal user, open a console window.

Enter the following:

passwd

You should see the following

[dwmoar@laptop ~]$ passwd --> press return/enter key

Changing password for user dwmoar.

Enter current password: --> Enter your current password. NOTE: Your password will not show on the screen. press return/enter key

New password: --> Enter your new Resetting your username password] NOTE: Your password will not show on the screen. press return/enter key

Retype new password: --> Enter your new password again. NOTE: Your password will not show on the screen. press return/enter key

passwd: all authentication tokens updated successfully.

if you reenter the same password as you are already using you will see

Password unchanged New password:

Change-password-currentuser.png