From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

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 - Linux Tutorial

From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Start my 1-month free trial

Modify local user accounts

- [Instructor] In order to change a users account settings after they've been created, we'll need to use a usermod command. Most of the syntax for usermod is identical to that of useradd. Let's discuss a few of usermod's more common options. Dash d let's you change a user's home directory. We might use this if we've manually moved their home directory and need to update etc password. Dash g, and dash u options allow us to change the primary group ID as well as the users user ID. Dash capital G is for adding users to supplemental groups. Note that this is a complete list and will override their current list of groups unless we use the next option- dash a. Dash a and combination with dash capital G allows you to append people to supplemental groups. Dash l allows us to change the user's login name. Dash capital L and dash capital U allow us to lock and unlock user's accounts. Usermod also has the ability to move the…

Contents