20161101l04-04 old boy Linux OPS training-linux system user and User group management-02

Source: Internet
Author: User
Tags stdin

Front User Group

Add User Group command

Groupadd


We just need to remember some common parameters.


Groupadd-g 8888 Syz #添加 GID 888 user Group

View grep syz/etc/group after adding complete


The point is, passwd, this command.

Used to change the password


Passwd-d This is the delete password

With passwd This command, root can change any user's password, and is not required to lose the original password

Password for other user passwords, and can only change their own password


Passwd-l lock account, cannot log in, cannot change password

Passwd-u unlock


SSH is not allowed to log in with a blank password by default


Here is a combined parameter

Passwd-n 7-x 80-w 10-i #解释是 Minimum seven days, maximum 80 days to change the password. There are 10 days to send a warning, after expiration 40 prohibit login

Last parameter stdin

echo "FADLFJ" |passwd--stdin root #通过管道更改密码, no hint, one effect


20161101l04-04 old boy Linux OPS training-linux system user and User group management-02

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.