Name
usermod — stdin stdout - file -- opt --help --version
Synopsis
usermod [options]username
The usermod command
modifies the given user’s account in various ways, such as changing
a home directory:
# usermod -d /home/another smith
Useful options
|
|
Change the user’s
home directory to
|
|
|
Change the user’s
login name to |
|
|
Change the user’s
login shell to
|
|
|
Change the user’s
initial (default) group to |
|
|
Make the user a
member only of the additional, existing
groups |
|
|
Disable (lock) the account so the user cannot log in. |
|
|
Unlock the account
after a lock ( |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access