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 23,300 courses taught by industry experts.
Modify local user accounts
From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Create and delete local user accounts5m 59s
-
(Locked)
Modify local user accounts5m 28s
-
(Locked)
Change passwords and adjust password aging for local user accounts4m 40s
-
(Locked)
Manage aging for local user accounts5m 45s
-
(Locked)
Create, delete, and modify local groups and group memberships5m 41s
-
(Locked)
Log in and switch users in multiuser targets2m 17s
-
(Locked)
Elevating privileges using sudo3m 28s
-
(Locked)
Challenge: Users and accounts1m 31s
-
(Locked)
Solution: Users and accounts2m 49s
-
-
-
-
-
-
-