Question

How can I changing user password on Ubuntu 14.04

  • Posted October 15, 2014

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

Subscribe
Share

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.

This comment has been deleted

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. : )

Thanks. What I really want is - I hired a developer and gave him an access on our server, after his job was done, I realized that he still has an access onto the server even though the root password was changed right after he finished working. My guess is that he has an account with root privileges, and would like to change at least his password after finding the account somehow…The best case scenario for me is to find out how many user account has admin privileges, and then which credentials has to be changed. Would you happen to know how to say look up ALL users, and then from there I can change password of usernames that i don’t recognize.

Thans


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

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.

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.