Detailed introduction to modifying user mode

巴扎黑
Release: 2017-06-10 10:51:04
Original
1964 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template