RHCSA RHEL 8 – Create, delete, and modify local groups and group memberships

Your support on Ko-Fi is much appreciated:

👉 https://ko-fi.com/csg_yt

Recommended RHCSA book:

📔 Amazon AU: https://amzn.to/2X5FL98

Buy CSG Merchandise:

👉 http://tee.pub/lic/csg

More information on Sophos Home Antivirus:

👉 http://bit.ly/SophosHP

More information about Hostinger VPS:

👉 http://bit.ly/H-VPS

Join our new discord channel:

👉 https://discord.gg/kBQ6Jry

This video is based on RHEL 8. Video to cover the section ‘Create, delete, and modify local groups and group memberships’ for the RHCSA (Red Hat Certified System Administrator).

More information on the required learning: http://bit.ly/rhcsa8

Notes from the video:

To create a new group:

# groupadd IT

You can define the Group ID (GID) via -g:

# groupadd -g 3032 IT

You can delete a group using:

# groupdel IT

To update the group name:

# groupmod -n IT IT-Support

To update the group ID (GID) of a group:

# groupmod -g 3033 IT-Support

To add an addtional group to a user account:

# usermod -aG IT-Support user1

To list the group members of a specific group:

# groupmems -l -g IT-Support

To remove a user from a group run:

# gpasswd -d user1 IT-Support

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Design a site like this with WordPress.com
Get started