Modifying the user mode can be achieved using the usermod command. 1. Introduction to common usermod commands: -a: Only used together with -G to add users to affiliated groups. -d: Modify the directory when the user logs in. For example, when a general user logs in, the preset home directory will be entered by default. Sometimes, in order to facilitate login, you need to enter a more complex path. You can use this option to set the directory when entering. . -g: Modify the group to which the user belongs. -G: Modify the additional groups to which the user belongs; this option can be used when changing the user's sudo permissions. -s: Modify the user mode used after logging in
1. linux user management (2) about modifying the user mode (picture)
Introduction: Modifying the user mode can be achieved using the usermod command. 1. Introduction to common usermod commands: -a: Only used together with -G to add users to affiliated groups. -d: Modify the directory when the user logs in. For example, when a general user logs in, the preset home directory will be entered by default. Sometimes, in order to facilitate login, you need to enter a more complex path. You can use this option to set the directory when entering. . -g:
The above is the detailed content of Detailed introduction to modifying user mode. For more information, please follow other related articles on the PHP Chinese website!