📄 setgroups.2
字号:
.\" SCCSID: @(#)setgroups.2 8.1 9/11/90.TH setgroups 2.SH Namesetgroups \- set group access list.SH Syntax.nf.ft B#include <sys/param.h>.PP.ft Bsetgroups(ngroups, gidset)int ngroups, *gidset;.fi.SH Description.NXR "setgroups system call".NXR "group access list" "setting"The.PN setgroupssystem call sets the group access list of the current user processaccording to the array,.IR gidset .The.I ngroupsparameter indicates the number of entries in the array and must be nomore than NGROUPS, as defined in .PN <sys/param.h> ..PPOnly the superuser can set new groups..SH Return ValuesA 0 value is returned on success, \-1 on an error, withthe error code stored in \fIerrno\fP..SH DiagnosticsThe .PN setgroupscall fails if:.TP 15[EPERM]The caller is not the superuser..TP 15[EFAULT]The address specified for .I gidset is outside the processaddress space..SH See Alsogetgroups(2), initgroups(3x)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -