Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
26
rated 0 times [  26] [ 0]  / answers: 1 / hits: 72985  / 1 Year ago, sat, january 14, 2023, 5:43:56

I am superadmin of a server and like to change password of an existing user . How can I do that ?



I tried



usermod -p 'new-password' john


but it didn't worked ?


More From » password

 Answers
3

The usermod -p flag is expecting the data to be the password already in an encrypted format.



Use openssl passwd to generate the encrypted data, or do it like this:



usermod -p `openssl passwd` (USERNAME)

[#38462] Sunday, January 15, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
laceanz

Total Points: 86
Total Questions: 113
Total Answers: 104

Location: Australia
Member since Thu, Jan 26, 2023
1 Year ago
;