Name
usermod [options
] username
— shadow-utils
Synopsis
/usr/sbin
stdin stdout - file -- opt --help --version
The usermod
command modifies the given user’s account in various ways, like 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 the account so the user cannot log in. |
| Unlock the account after a |
Get Linux Pocket Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.