📄 initgroups.3x
字号:
.\" SCCSID: @(#)initgroups.3x 8.1 9/11/90.TH initgroups 3x.SH Nameinitgroups \- initialize group access list.SH Syntax.B initgroups(name, basegid).br.B char *name;.br.B int basegid;.SH Description.NXR "initgroups subroutine".NXR "group access list" "initializing"The.PN initgroupssubroutinereads through the group file and sets up,using the .MS setgroups 2call, the group access list for the userspecified in.IR name .The.I basegidis automatically included in the groups list.Typically this value is given asthe group number from the password file..SH RestrictionsThe.PN initgroupssubroutine uses the routines based on .MS getgrent 3 .If the invoking program uses any of these routines,the group structure willbe overwritten in the call to.PN initgroups ..SH Return ValuesThe.PN initgroupsreturns \-1 if it was not invoked by the superuser..SH Files/etc/group.SH See Alsosetgroups(2)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -