Thursday, December 8, 2016

openssl passwd -crypt: Creating and Managing User Accounts

openssl passwd -crypt: Creating and Managing User Accounts 

useradd 

As its name implies, the useradd utility is used to add users to the Linux system.
The syntax for useradd is:


openssl passwd -crypt 

openSUSE:~ # openssl passwd –crypt 
Password:
Verifying - Password:
1k4LGDSCsTuQE 




useradd –c  “Jackie McArthur” –m –p “1k4LGDSCsTuQE” –s “/bin/bash” jmcarthur 

openSUSE:~ # useradd -c "Jackie McArthur" -m -p "1k4LGDSCsTuQE"
-s "/bin/bash" jmcarthur
openSUSE:~ # cat /etc/passwd
...
jmcarthur:x:1005:100:Jackie McArthur:/home/jmcarthur:/bin/bash




LX0-104 Exam Objectives (K)

No comments:

Post a Comment