Your support on Ko-Fi is much appreciated:
Recommended RHCSA book:
📔 Amazon AU: https://amzn.to/2X5FL98
Buy CSG Merchandise:
More information on Sophos Home Antivirus:
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