Linux Learning -11-learning Linux account Management

Source: Internet
Author: User

User identifier: UID and GID

General user's password forgot: This is the most easy to solve, please system administrator Help, he will reset your password and do not need to know your old password! Use the passwd command as root to process it.

Root password Forgotten: Restart into the single-player maintenance mode (20th), the system will give the root of the active bash interface, at this time to change the password by passwd, or to mount the root directory after the Live CD to modify the/etc/shadow, will be inside the root of the secret After the Code field is emptied and then restarted, root will log in without a password! Log in and then quickly use the passwd command to set the root password.

Active groups, initial groups

Input groups Display Support Group, the first is a valid group

NEWGRP: Switching of active groups

NEWGRP + Group Name change active Group exit exit restore

Account Management

New and removed:

USERADD-G User name plus group name

Useradd-r User Name Add admin account

Unable to log in need to set password passwd

passwd user name does not add user name to set their own password

Chage Detailed Password parameters

Usermod Account Tuning

Userdel account removed-R along with the home directory delete

Temporarily do not start the account:/etc/shadow account expiration date (eighth field) is set to 0 can be used to make the account unusable

"Find/-user username" After finding the archive one by one delete


Add and remove groups

Groupadd Group Name

Groupmod Group Parameter Tuning

Groupdel Removing a group


GPASSWD: Group Administrator features

GPASSWD GroupName


Account Management-work together

SGID the Seventh chapter






Linux Learning -11-learning Linux account Management

Related Article

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.