From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Modify local user accounts

Modify local user accounts

- [Instructor] In order to change a user's account settings after the user has been created, we'll need to use the usermod command. Most of the syntax for usermod is identical to that of useradd. Let's discuss a few of usermod's more common ones. To change a user's home directory use -d for directory. You might use this if you've manually moved a user's home directory and need to update/etc/password To change a user's ID number, use the -u option. It's quite rare to do this, but it may happen if you're using NFS for network file sharing and need users to have the same user ID on different hosts. We can do the same for the user's primary group ID using the -g option. All users belong to the primary group. In red hat based operating systems, The primary group is unique to the user and created automatically. All files created by the user will belong to the primary group initially. If you want the user to belong to an additional or supplemental group, use dash uppercase G You may want…

Contents