Urgent help needed: Please provide screen shots, will thumbs up good work!
LANGUAGE: PYTHON
Task 5: Managing Groups
Execute the following commands in the root command-line
environment: # for i in jones sam henry john smith; do useradd $i;
done
Check whether users jones sam henry john smith are created
# tail /etc/passwd
# groupadd friends
# for i in jones sam henry john smith; do gpasswd -a $i friends;done
Check whether users jones sam henry john smith are added to group friends
# tail /etc/group
# userdel henry
# usermod -L jones
# chage -d 0 jones
# python
>>> import crypt;print crypt.crypt ("password","pen")
>>>
Press CTRL d to exit
Use the mouse to copy the encrypted string.
# usermod -p jones
The angle brackets (< and >) are NOT part of the string!
# grepjones/etc/shadow # chage-M2john
# passwdsam
# useraddbill
# gpasswd-abillfriends # chage-M3smith
Explain change –M command. What is the final output?
Urgent help needed: Please provide screen shots, will thumbs up good work! LANGUAGE: PYTHON Task 5:...