groupadd(8) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

groupadd(8)

groupadd(8)             System Administration Commands             groupadd(8)

NAME
       groupadd - add (create) a new group definition on the system

SYNOPSIS
       /usr/sbin/groupadd [-g gid [-o]] [-S repository]
            [-U user1[,user2..] ] group

DESCRIPTION
       The  groupadd  command  creates a new group definition on the system by
       adding the appropriate entry to the group database  in  the  files  and
       ldap repositories.


       An  administrator must be granted the User Management rights profile or
       have solaris.group.manage authorization to be able to add a group. Once
       the group is successfully added, the administrator is granted  the  au‐
       thorization  to  modify  and  delete  the  group.  See  groupmod(8) and
       groupdel(8). The authorizations required to assign groups and  projects
       can be found in group(5) and project(5).

OPTIONS
       The following options are supported:

       -g gid

           Assigns the group id gid for the new group. This group id must be a
           non-negative  decimal  integer  below MAXUID as defined in /usr/in‐
           clude/sys/param.h. The group ID  defaults  to  the  next  available
           (unique)  number  above  the highest number currently assigned. For
           example, if groups 100, 105, and 200 are assigned  as  groups,  the
           next default group number is 201. (Group IDs from 0−99 are reserved
           by Oracle Solaris for future applications.)


       -o

           Allows the gid to be duplicated (non-unique). An administrator must
           have solaris.group.assign authorization to use this option.


       -S repository

           The  repository  specifies  which name service will be updated. The
           valid repositories are files and ldap. The  default  repository  is
           files.  When the repository is files, the user names can be present
           in other name service repositories and can be assigned to  a  group
           in  the  files repository. When the repository is ldap, all the as‐
           signable attributes must be present in  the  ldap  repository,  and
           both the LDAP server and client must be configured with enableShad‐
           owUpdate. See ldapclient(8) for details.


       -U user1[,user2]

           Adds a list of users user1, user2 to the group.


OPERANDS
       The following operands are supported:

       group    A string consisting of characters from the set of ASCII lower‐
                case  alphabetic  characters and numeric characters. A warning
                message is written if the string exceeds MAXGLEN-1,  which  is
                32  characters  in  Oracle  Solaris 11.4. The group field must
                contain at least one character; it accepts  lowercase  or  nu‐
                meric  characters  or a combination of both, and must not con‐
                tain a colon (:) or NEWLINE.


EXIT STATUS
       The following exit values are returned:

       0     Successful completion.


       2     Invalid command syntax. A usage message for the groupadd  command
             is displayed.


       3     An invalid argument was provided to an option.


       4     The gid is not unique (when -o option is not used).


       9     The group is not unique.


       10    The group database cannot be updated.


FILES
           o      /etc/group


           o      /usr/include/userdefs.h


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ Availabilitysystem/core-os


SEE ALSO
       group(5), attributes(7), groupdel(8), groupmod(8), grpck(8), logins(8),
       pwck(8), useradd(8), userdel(8), usermod(8)


       Managing User Accounts and User Environments in Oracle Solaris 11.4


       Working With Oracle Solaris 11.4 Directory and Naming Services: LDAP

NOTES
       groupadd adds a group definition to the system. If a network name  ser‐
       vice  is  being used to supplement the local /etc/group file with addi‐
       tional entries, groupadd verifies the uniqueness of a  specified  group
       name  and  group  ID against the external name service and uses the en‐
       tries in the files repository. The group name should be  restricted  to
       the Portable Filename Characters: A-Z, a-z, 0-9, '_', '-', and '.'.


       If  the number of characters in a group entry exceeds 2047, group main‐
       tenance commands, such as groupdel(8) and groupmod(8), fail.

Oracle Solaris 11.4               11 May 2021                      groupadd(8)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3