How to set a password to a linux user?

  • 0
    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

  • 2 Answers
  • 0
    useradd -d / home / ch1 -g ftpch -p "$ (echo -n PASSWORD | openssl passwd -crypt -stdin)" vova
    Alexander Page

  • 0

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!