Q. How do I reset a user's password under any Linux distribution from command prompt?
A. To reset a user's password, use passwd command. You have to change it to a different password.
Login as the root user
Open terminal or shell prompt
Type the following command:
# passwd username
For example, reset a tom's password, enter:
# passwd tom
Type a new password twice.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop












{ 9 comments… read them below or add one }
forgot how to reset user’s password, and found here from google serach. It’s working. thanks!
jj
Sir,
I introduce myself as I dont have knowledge of linux systems .But I want to learn LINUX.
I have a problem in a Digital Video Recorder Linux based embeded system which used HD for rrecording Video images.Os and applications are in the motherboard only.As I switch on the system, the screen shows INITIALISE and then the application starts itself.we cannot log into the admin of application to setup the system. The connected cameras are viewable.The user has lost or deleted the admin password.
Please guide me how to solve the problem. The system is working as normal except the admin login .I dont know the version of LINUX operating system.Or I need ghosting of program from one good system(I have another machine in good working status with password.
i was going to reset the root password and it doesen’t work it was saying somthing like control-d command and i can’t type in “passwd best”
i open help of yahoo site. i open how to change my password.
it open the page but my cursur does not work, it doesn’t type a single letter.
so many times i did it but it doesn’t go… please help.
I HAVE JUST BOUGHT ONE OF THESE SECOND HAND SO HOW DO I GET THE PASSWORD TO OPEN THINGS LIKE I DOWNLOADED GOOGLE CHROME AND IT ASKED FOR A PASSWORD
thank you so much.
i have a same problem.
i resolved with your help.
how to apply to multiple servers?
Hello sir,
This is XXX,I want kill other user’s processes in linux.
Anyone having idea about this,pls send solution.
Thx in advance……………………
their is no permissions to change the password even though if we change the password it gives changed successfully how come it can give in a normal user