RHCSA RHEL 8 – Create, delete, and modify local user accounts

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 user accounts’ for the RHCSA (Red Hat Certified System Administrator).

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

Notes from the video:

Users are added to the system using the following command:

# usermod user1

As part of running the usermod command it gives the user a unique UID (user ID number) and creates a group of the same name with its own GID (group ID number).

To specify the UID and GID at user creation run:

# useradd -u 1001 -g 1002 user1

To create a new group run:

# groupadd IT

To create a new user and add it to that group:

# useradd -G IT user1

To delete a user:

# userdel user1

To delete a user and their home directory:

# userdel -r user1

To rename a user:

# usermod -l user2 user1

To update the password of a user:

# passwd user1

Leave a Reply

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

Create your own website, free on WordPress.com.Create your own website.
Start free