Task 3: Managing Users
‘Execute the following commands in the rootcommand-line environment:
# passwd newuser1
# grep newuser1 /etc/shadow
Observe the encrypted password string.
_________________________________________________________________???????(writewhat you see)
# su newuser1
Execute the following commands in the normal user command-lineenvironment:
$ whoami
$ exit
Execute the following commands in the root command-lineenvironment:
#passwd -l newuser1
# passwd -u newuser1
#passwd -n 5 newuser1
# grep newuser1 /etc/shadow
# passwd -n 7 newuser1
# grep newuser1 /etc/shadow
What is option n means? (use man passwd to findout)
__________________________________________________________________________________________________________________/?????????????????
# passwd -x 10 newuser1
# grep newuser1 /etc/shadow
What is the function of first command?
__________________________________________________________________________________________________________________????????
#usermod -e (type expiration date) newuser1
What this command is going to set up?
____________________________________________________________________________________???????????
#grep newuser1 /etc/shadow
Which field stores the value for