How to set a password to a linux user?
-
I enter:
useradd -d / home / ch1 -g ftpch -p 123 vova
But the password is not set, -help says: encrypted password of the new account. How can I encrypt it?Ubuntu Anonymous, Oct 25, 2019 -
useradd -d / home / ch1 -g ftpch -p "$ (echo -n PASSWORD | openssl passwd -crypt -stdin)" vovaAlexander Page
-
passwdAnonymous
2 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!