Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ././../../../../../../usr/man/man8/groupadd.8
Real path: /usr/share/man/man8/groupadd.8
Zurück
'\" te .\" Copyright (c) 1989, AT&T. All rights reserved. .\" Portions Copyright (c) 1998, 2021, Oracle and/or its affiliates. .TH groupadd 8 "11 May 2021" "Oracle Solaris 11.4" "System Administration Commands" .SH NAME groupadd \- add (create) a new group definition on the system .SH SYNOPSIS .LP .nf \fB/usr/sbin/groupadd\fR [\fB-g\fR \fIgid\fR [\fB-o\fR]] [\fB-S\fR \fIrepository\fR] [\fB-U\fR \fIuser1\fR[,\fIuser2\fR..] ] \fIgroup\fR .fi .SH DESCRIPTION .sp .LP The \fBgroupadd\fR command creates a new group definition on the system by adding the appropriate entry to the group database in the \fBfiles\fR and \fBldap\fR repositories. .sp .LP An administrator must be granted the User Management rights profile or have \fBsolaris.group.manage\fR authorization to be able to add a group. Once the group is successfully added, the administrator is granted the authorization to modify and delete the group. See \fBgroupmod\fR(8) and \fBgroupdel\fR(8). The authorizations required to assign groups and projects can be found in \fBgroup\fR(5) and \fBproject\fR(5). .SH OPTIONS .sp .LP The following options are supported: .sp .ne 2 .mk .na \fB\fB-g\fR \fIgid\fR\fR .ad .br .sp .6 .RS 4n Assigns the group id \fIgid\fR for the new group. This group id must be a non-negative decimal integer below \fBMAXUID\fR as defined in \fB/usr/include/sys/param.h\fR. The group \fBID\fR defaults to the next available (unique) number above the highest number currently assigned. For example, if groups \fB100\fR, \fB105\fR, and \fB200\fR are assigned as groups, the next default group number is \fB201\fR. (Group \fBIDs\fR from \fB0\fR\(mi\fB99\fR are reserved by Oracle Solaris for future applications.) .RE .sp .ne 2 .mk .na \fB\fB-o\fR\fR .ad .br .sp .6 .RS 4n Allows the \fIgid\fR to be duplicated (non-unique). An administrator must have \fBsolaris.group.assign\fR authorization to use this option. .RE .sp .ne 2 .mk .na \fB\fB-S\fR \fIrepository\fR\fR .ad .br .sp .6 .RS 4n The \fIrepository\fR specifies which name service will be updated. The valid repositories are \fBfiles\fR and \fBldap\fR. The default repository is \fBfiles\fR. When the repository is \fBfiles\fR, the user names can be present in other name service repositories and can be assigned to a group in the \fBfiles\fR repository. When the repository is \fBldap\fR, all the assignable attributes must be present in the \fBldap\fR repository, and both the LDAP server and client must be configured with \fBenableShadowUpdate\fR. See \fBldapclient\fR(8) for details. .RE .sp .ne 2 .mk .na \fB\fB-U\fR \fIuser1\fR[,\fIuser2\fR]\fR .ad .br .sp .6 .RS 4n Adds a list of users \fIuser1\fR, \fIuser2\fR to the group. .RE .SH OPERANDS .sp .LP The following operands are supported: .sp .ne 2 .mk .na \fB\fIgroup\fR\fR .ad .RS 9n .rt A string consisting of characters from the set of \fBASCII\fR lowercase alphabetic characters and numeric characters. A warning message is written if the string exceeds \fBMAXGLEN-1\fR, which is 32 characters in Oracle Solaris 11.4. The \fIgroup\fR field must contain at least one character; it accepts lowercase or numeric characters or a combination of both, and must not contain a colon (\fB:\fR) or \fBNEWLINE\fR. .RE .SH EXIT STATUS .sp .LP The following exit values are returned: .sp .ne 2 .mk .na \fB\fB0\fR\fR .ad .RS 6n .rt Successful completion. .RE .sp .ne 2 .mk .na \fB\fB2\fR\fR .ad .RS 6n .rt Invalid command syntax. A usage message for the \fBgroupadd\fR command is displayed. .RE .sp .ne 2 .mk .na \fB\fB3\fR\fR .ad .RS 6n .rt An invalid argument was provided to an option. .RE .sp .ne 2 .mk .na \fB\fB4\fR\fR .ad .RS 6n .rt The \fIgid\fR is not unique (when \fB-o\fR option is not used). .RE .sp .ne 2 .mk .na \fB\fB9\fR\fR .ad .RS 6n .rt The \fIgroup\fR is not unique. .RE .sp .ne 2 .mk .na \fB\fB10\fR\fR .ad .RS 6n .rt The group database cannot be updated. .RE .SH FILES .RS +4 .TP .ie t \(bu .el o \fB/etc/group\fR .RE .RS +4 .TP .ie t \(bu .el o \fB/usr/include/userdefs.h\fR .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Availability system/core-os .TE .sp .SH SEE ALSO .sp .LP \fBgroup\fR(5), \fBattributes\fR(7), \fBgroupdel\fR(8), \fBgroupmod\fR(8), \fBgrpck\fR(8), \fBlogins\fR(8), \fBpwck\fR(8), \fBuseradd\fR(8), \fBuserdel\fR(8), \fBusermod\fR(8) .sp .LP \fIManaging User Accounts and User Environments in Oracle Solaris 11.4\fR .sp .LP \fIWorking With Oracle Solaris 11.4 Directory and Naming Services: LDAP\fR .SH NOTES .sp .LP \fBgroupadd\fR adds a group definition to the system. If a network name service is being used to supplement the local \fB/etc/group\fR file with additional entries, \fBgroupadd\fR verifies the uniqueness of a specified group name and group \fBID\fR against the external name service and uses the entries in the \fBfiles\fR repository. The group name should be restricted to the Portable Filename Characters: \fBA-Z\fR, \fBa-z\fR, \fB0-9\fR, '\fB_\fR', '\fB-\fR', and '\fB.\fR'. .sp .LP If the number of characters in a \fBgroup\fR entry exceeds 2047, group maintenance commands, such as \fBgroupdel\fR(8) and \fBgroupmod\fR(8), fail.