useradd -p`echo 1234 | openssl passwd -stdin` test (create user test with password 1111 using default crypt algorithm) useradd -p`echo 1234 | openssl passwd -1 -stdin` test (create user test with password 1111 using MD5 algorithm)