Although administrators can configure users at creation time, they may need to change user account settings later as well. In Linux, we use the usermod command for this. Using usermod, we can change the default shell, lock passwords, and even move users' home directories.
- In order to change a user's 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 lets you change the user's home directory.…We might use this if we manually move their home directory…and need to update etc password.…Dash G and dash U options allow…us to change primary group ID…as well as the user's user ID.…
Dash capital G is for adding users to supplemental groups.…Note that this is a compete list…and will override their current list of groups…unless we use the next option, dash A.…Dash A in 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 users' accounts.…Usermod also has the ability to move…a user's home directory using the dash M option.…
And lastly, dash S allows us to…specify the default login shell for the user.…
- Identify what data is stored in the /etc/passwd file with the shadow suite installed.
- Name the file that Linux group password hashes are stored in when the shadow suite is installed.
- Describe how to override default account aging information.
- Explain how to elevate privileges using the sudo command.
- Name the command that a user can use to change their effective primary group.