[Linux] Linux systems (user management)

Source: Internet
Author: User

There are three types of users in Linux

Root User: Super Administrator

System User: Linux required to run some programs is not recommended to modify

General users: general modification of this

Using the command Groupadd, add user groups, parameters: Group name

In the file/etc/group, add a record

Using the command Groupdel, delete the group, parameter: group name

Using the command Groupmod, modify the group ID, parameter:-G new Group ID group name;

Manage users

Using the command useradd, add user, parameter: User name

For example: Useradd test, a group test:x:502 is generated in the/etc/group file:

A user is generated in the/etc/passwd file Test:x:502:502::/home/test:/bin/bash

A password is generated in the/etc/shadow file test:!! : 16931:0:99999:7:::

Use command passwd, set password, parameter: username

Using the command Userdel, delete user, parameter:-R (delete home directory) user name; home directory in/home/user name

Use Test2 's account to not enter test's home directory

[Linux] Linux systems (user management)

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.