LINUX CLASSES - LINUX COMMANDS

Linux Change Password

How Do I Change my Linux Password?

You can use the passwd command to change your log-in password, and as you can tell from the man output shown in the preceding section, you have quite a few options. Here are some of the most common:
passwd   Change your own password.

passwd sleepy   Change sleepy's password.

passwd -d sleepy   Delete sleepy's password.

When you enter one of these commands to change a password, you will be prompted for the old (current) password and a new password. Your new password should be at least six characters long and not too easy for someone else to guess. Oh, and writing it down on a scrap of paper taped to your monitor is not recommended either. :-)

If you share your Linux system with multiple users, or if you have a dial-in modem attached, password security for each account is particularly important. But if you're the only one who will ever lay a finger on your system, you might want to delete your password, thus removing the need to enter it each time you log in. It's your call, but you never know when your five-year-old will wander by the keyboard!

By the way, you might get the idea from the preceding commands that users can go around changing each other's passwords at will, but that's not the case. Only a superuser (such as root) can change or delete another user's password.

For more information on the passwd command, see the passwd manual.

Previous Lesson: Important Linux Commands
Next Lesson: Switching Users

[ RETURN TO INDEX ]


   

It seems that comments script is not properly installed. See readme.txt for more info.

Comments - most recent first
(Please feel free to answer questions posted by others!)

No comments yet

I welcome your comments. However... I am puzzled by many people who say "Please send me the Linux tutorial." This website *is* your Linux Tutorial! Read everything here, learn all you can, ask questions if you like. But don't ask me to send what you already have. :-)

NO SPAM! If you post garbage, it will be deleted, and you will be banned.
*Name:
Email:
Notify me about new comments on this page
Hide my email
*Text:
 
 


Ask Bob Rankin - Free Tech Support


Copyright by - Privacy Policy
All rights reserved - Redistribution is allowed only with permission.

privacy policy