Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hey, so I created a user, and he has been sshing in and doing a lot of stuff, but he forgot his password - is there any way for me to change his password without knowing it?

share|improve this question

closed as off-topic by Magellan, Ward, Jenny D, MadHatter, Ladadadada Oct 30 '14 at 11:52

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Magellan, Ward, Jenny D, MadHatter, Ladadadada
If this question can be reworded to fit the rules in the help center, please edit the question.

you could also add his public key to ~/.ssh/authorized_keys for passwordless authentication... – MattBianco Oct 29 '14 at 13:36

Oh, it's

passwd username

Sorry for asking and answering my own question. :S

share|improve this answer
No problem with answering your own question - just go ahead and mark it as answered. – runlevelsix Aug 9 '10 at 22:07
It doesnt let me do that, for two days. – caeasy Aug 9 '10 at 22:08
Are you trying it from root or from your normal user? If you are doing it from your normal user it should be 'sudo passwd username' rather than 'passwd username' – Matt Delves Aug 9 '10 at 22:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.