RHEL7 Create multiple user groups and users, set up candidate groups, default shell

Source: Internet
Author: User
Tags stdin

Create multiple user groups and users, set up candidate groups, default shell

groupadd-g 40000 adminuser specify GID

Useradd natasha-g adminuser Specify a subordinate group

[Email protected]/]# Useradd Harry-gadminuser

[Email protected]/]# Useradd sarah-s/bin/nologin

[Email protected]/]# echo "Glegunge" | passwd--stdin Natasha Specify password

Changing password for user Natasha.

Passwd:all Authentication tokens updatedsuccessfully.

[Email protected]/]# echo "Glegunge" | passwd--stdin Harry

Changing password for user Harry.

Passwd:all Authentication tokens updatedsuccessfully.

[Email protected]/]# echo "Glegunge" | passwd--stdin Sarah

Changing password for user Sarah.

Passwd:all Authentication tokens updatedsuccessfully.


This article is from the "Yolo" blog, make sure to keep this source http://4708948.blog.51cto.com/4698948/1701858

RHEL7 Create multiple user groups and users, set up candidate groups, default shell

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.