Top Ad unit 728 × 90

Latest updates

recent

USER ADMINISTRATION PRACTICAL STEPS



'#### TO CREATE A USER ####'
# useradd <username>
# useradd tom


'#### TO CHECK THE USER DETAILS ####'
# cat /etc/passwd (for complete details)
# tail /etc/passwd (for last 10 users details)
# tail -3 /etc/passwd (for last 3 users details)
# head /etc/passwd (for top 10 users details)
# head -3 /etc/passwd (for top 3 users details)
# grep tom /etc/passwd (for particular user details)


'#### ASSIGNING A PASSWORD TO USER ####'
# passwd <username>
# passwd tom
Password: 1
Re-Password: 1


'#### TO CHECK THE USER PASSWORD DETAILS ####'
# cat /etc/shadow
# tail /etc/shadow


'#### TO CHECK THE PASSWORD ENCRYPTION TOOL ####'
# passwd -S <username>
# passwd -S tom


'#### TO CHANGE THE PASSWORD ENCRYPTION TOOL ####'
# authconfig-tui
By pressing spacebar key uncheck the option USE MD5
Click on NEXT
# useradd jack (create a user)
# passwd jack (assign the password)
# passwd -S jack (check the password tool)


'#### TO LOGIN WITH A USER ####'
# su - tom (In root Console)
# exit (to logout)
# gdmflexiserver (to open extra graphical console)
Select the user and enter the password
Create Some Data
Go to root console by pressing ctrl+alt+F1
And check the user data
# ls /home/tom/Desktop
# who (to get the details of active users)


'#### TO LOCK A USER ####'
# usermod -L <username>
# usermod -L tom
# grep tom /etc/shadow (to check)
'!' sign indicates that a user is lock
# gdmflexiserver
Try to login with user tom


'#### TO UNLOCK A USER ####'
# usermod -U <username>
# usermod -U tom
# grep tom /etc/shadow (to check)
# gdmflexiserver
Try to login with user tom


'#### TO CHECK THE MAIL ACCOUNT OF USERS ####'
# cd /var/spool/mail
# ls (to check)


'#### TO CHECK THE GROUP OF THE USER ####'
# tail /etc/group


'#### TO CHECK THE AVAILABLE SHELLS ####'
# cat /etc/shells
USER ADMINISTRATION PRACTICAL STEPS Reviewed by Unknown on 6:37 PM Rating: 5
© 2007 - 2016. All Rights Reserved by Babashaheer Blog

Contact Form

Name

Email *

Message *

Powered by Blogger.