How to add a system group

Source: Internet
Author: User
How to add a system group-general Linux technology-Linux technology and application information. The following is a detailed description. Dear colleagues, I want to add a system group by using commands. Under ubuntu8.04, I found that the-r option does not exist through groupadd-h. Useradd-r pipi is used to add a system user pipi. Naturally, groupadd-r pipi is used to add a system group. This is what the groupadd command explains, the problem is that the system-class option-r in ubuntu8.04 does not exist at all.

Can I add a system group by setting the GID value? UID lower than 1000 (under ubuntu 8.04) is the UID of the System user, and GID lower than 1000 (under ubuntu 8.04) is the gid of the system group. If possible, this is quite troublesome, that is, every time I use the groupadd-g 130 pipi command such as the default UID, I have to cat/etc/group to check all the existing gids, avoid repeating-g 130 in groupadd with the GID in/etc/group. If groupadd-r pipi is used, cat/etc/group operations are not required, the GID of the newly added system group will be automatically followed up.

Is it because groupadd under ubuntu8.04 does not have-r (system category option), or I have to reset it somewhere so that the-r option of groupadd can be used by me, I hope you will tell us.
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.