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?
Asked
Active
Viewed 3,214 times
6
-
you could also add his public key to `~/.ssh/authorized_keys` for passwordless authentication... – MattBianco Oct 29 '14 at 13:36
1 Answers
11
Oh, it's
passwd username
Sorry for asking and answering my own question. :S
![](../../users/profiles/1293.webp)
Dennis Williamson
- 60,515
- 14
- 113
- 148
![](../../users/profiles/50692.webp)
caeasy
- 179
- 1
- 5
-
No problem with answering your own question - just go ahead and mark it as answered. – runlevelsix Aug 09 '10 at 22:07
-
-
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 09 '10 at 22:45