Home  >  Article  >  Operation and Maintenance  >  Detailed introduction to modifying user mode

Detailed introduction to modifying user mode

巴扎黑
巴扎黑Original
2017-06-10 10:51:041916browse

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)

Detailed introduction to modifying user mode

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn