Linux Learning Notes (v) User management commands

Source: Internet
Author: User

First, the user account

1, Super User: With the highest privileges in the operating system, to manage and maintain the operating system. Root user.

2, ordinary users: created by the root user, in the host directory with full permissions.

3, program users: added by the application, maintenance of an application to run.

Second, group account

In a Linux system, multiple users are combined to form a group called a user group. Each user account must belong to at least one group, which is called the user's base group or private group. If the user is also included in other groups, this group can be called an additional group or a public group. Setting permissions on a group account will apply to each account in the group.

Third, common user management commands:

1. Useradd: Add user

Syntax: useradd [options] User name

Options:

-U: Specifies the UID number of the user

-D: Specify the user's host directory location

-e: Specify user's account expiration event

-G: Specify the user's base group name

-G: Specify the user's additional group name

-M: Do not create a user directory

-S: Specify the shell for user login

    

2. Userdel: Delete User

3. passwd: Set User password

4. Groupadd: Add group account

5. Groupdel: Delete group account

6. GPASSWD: Add Delete Group member

  

Linux Learning Notes (v) User management commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.