Top Ad unit 728 × 90

Latest updates

recent

GROUP ADMINISTRATION PRACTICAL STEPS



Create 5 Users
'#### TO CREATE A GROUP ####'
# groupadd <group_name>
# groupadd zoom
# tail /etc/group (to check)


'### TO ADD A SINGLE USER INTO GROUP ###'
# gpasswd -a <username> <groupname>
# gpasswd -a a1 zoom
# grep zoom /etc/group (to check)


'### TO ADD MULTIPLE USERS INTO GROUP ###'
# gpasswd -M a2,a3,a4 zoom
# grep zoom /etc/group (to check)
Note:-Adding Multiple Users Into the Group may get overwrite on
the existing users.So Without Overwriting to add a user then use
the above option(gpasswd -a)


'### TO REMOVE A USER FROM GROUP ###'
# gpasswd -d <username> <groupame>
# gpasswd -d a4 zoom
# grep zoom /etc/group (to check)


'### TO MAKE A USER AS GROUP ADMIN ###'
# gpasswd -A <username> <groupname>
# gpasswd -A a2 zoom
# grep zoom /etc/gshadow (to check)
# su - a2 (to check,login as a user)
# gpasswd -d a3 zoom (try to remove)
# gpasswd -a a5 zoom (try to add)
# grep zoom /etc/group (to check)
# exit (logout)
# gpasswd -A "" zoom (to remove the previlages)
# grep zoom /etc/gshadow (to check)


'### TO RENAME A GROUP ###'
# groupmod -n <newname> <oldname>
# groupmod -n zoomgroup zoom
# tail /etc/group (to check)


'### TO REMOVE A GROUP ###'
# groupdel zoomgroup
# tail /etc/group (to check)
GROUP ADMINISTRATION PRACTICAL STEPS Reviewed by Unknown on 6:50 PM Rating: 5
© 2007 - 2016. All Rights Reserved by Babashaheer Blog

Contact Form

Name

Email *

Message *

Powered by Blogger.