Linux Change Password
How Do I Change my Linux Password?
You can use thepasswd 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
Comments - most recent first
(Please feel free to answer questions posted by others!)
Everytime I logon to my linux servers, it ask's me to change my pw. How do I avoid this from happenning? I don't have this issue on Solaris servers.
Thanks
We are in a process of changing the Linux server password. We have used "passwd" command and successfully change the password. we have changed the password 3 times and all attempts are successfully executed. Now we want to make the password as it was there previously. when we are chnaging to old password, teh change is not happening and the error is coming as "BAD PASSWORD: has been already used"..Please help
Once again thank you Mr BOb
Thank you for your articles.
Now,I have a bother like that when i enter the "passwd" command in linux,then on the next line will show the promopt text like that "New Password", and now if i want to get the promopt text and what can i do for the goal.
Took care of that one too... I'm on a roll...(whew) this is hard work!
passwd -d "username"
pleas help me
Download some new linux discs of whatever flavor you want. Ubuntu is really easy. Others may be just as easy. Burn the ISO(s) to DVD/CD. Put them in, restart computer and make sure your BIOS is set to boot to DVD/CD device first. Follow instructions from linux installer. Enjoy your new Linux installation.
restart the system
press any key while booting
it takes to you have a screen
select required ie kernel
press b
you will get a terminal
you can directly log in as superuser
using passwd command you can change
instead you can change the password.
log in as single user.
you can do this by init 1 which shutdowns the
networking.
now u can login as single user.
change the password by passwd+enter
give the password
it will ask for new password.
enter it two times.
$ sudo su
***prompt will change***
# passwd
# exit
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.
Copyright © by -
All rights reserved - Redistribution is allowed only with permission.

