how to add users and Adding Groups in fedora linux ubuntu fedora14

10:54 AM
Adding Groups with groupadd


You need to create some new user or system groups. Any server programs that you install should have their own users and group.


Use groupadd.


This command creates a new group, using the system values configured in /etc/default/useradd and /etc/skel/:


# groupadd newgroup






You can create a system group with -r flag:


# groupadd -r newgroup




The -r flag is a Red Hat-specific option. If your version of groupadd does not have it, you'll have to specify the next available system group number:


# groupadd -g 127 newgroup




Look in /etc/group to see the next available group number.

0 Comments