Linux under the Group Management Command detailed

Source: Internet
Author: User

Linux under the Group Management Command detailed

    1. Groupadd command, add Group command

      Format: groupadd [options] Group name

      Option:-G: Specify GID

-R: Add System Group

Example: groupadd-g Willow Create Willow Group and GID is 1000

2.groupmod command, modify Group command

Format: groupmod [options] Group name

Option:-G: Modify GID

-N: Modify Group name

Example: groupmod-g 1100 Willow Modify Willow Group GID to 1100

Groupmod-n Willow.xia Willow Modify the willow group named Willow.xia

3.groupdel command, delete Group command

Format: Groupdel Group name

4.GPASSWD command, modify Group Password command

Format: gpasswd [options] Group name

Option:-A adds user to group

-D Delete a user in a group

-R Delete Group password

-M allows multiple users to join the group, separated by commas, noting that users in the original group will be removed

Example: gpasswd-m user1,user2,user3 Hello add User1,user2,user3 to the Hell Group

5.NEWGRP command, toggle staging Group

Note Switch groups, you must enter a group password,

Exit using the Exit command

6.chage, modify user account attribute time command

-D: Most recent modification time

-M: Minimum period of use

-M: Maximum lifespan

-E: Expiration time

-I: Inactive time

-W: Warning time


This article is from the "Willow_xia" blog, make sure to keep this source http://willow.blog.51cto.com/6574604/1762340

Linux under the Group Management Command detailed

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.