Question

How can I changing user password on Ubuntu 14.04

  • Posted on October 15, 2014
  • ChrisBoyAsked by ChrisBoy

I need to change a password for a user account on Ubutu 14.04… any suggestion?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This question was answered by @sheriffderek:

To list users you can use this terminal command (when you are logged in…)

cut -d: -f1 /etc/passwd

That being said… you are going to see a great many usernames you do not recognize… and those are system users that are needed to perform certain tasks - so you do not want to delete them.

You can check your users against these:

root daemon bin sys sync games man lp mail news uucp proxy www-data backup list irc gnats nobody libuuid syslog messagebus landscape sshd colord sheriffderek mysql

Where ‘root’ and ‘sheriffderek’ - are the only usernames I was previously aware of… so - your additional users should be in addition to these.

Also, you should just delete the users you don’t want instead of just changing the passwords. It’s just as easy to create new ones.

This is what I found when I googled your question:

http://askubuntu.com/questions/410244/a-command-to-list-all-users-and-how-to-add-delete-modify-users

ps: can you change your question title to - ‘How may I reset a user’s password: Ubuntu 14.04’ - or something that is a little more clear, for others. : )

You can see the comment here.

This question was answered by @gblanchard4:

To change a users password you need to have sudo privileges yourself. sudo passwd username will change the password for the ‘username’ you want to change.

You can see the comment here.