📄 getauthuid.3x
字号:
.TH getauthuid 3x .SH Namegetauthuid, getauthent, storeauthent, setauthent, setauthfile, endauthent \- get/set auth entry.SH Syntax.nf.B #include <sys/types.h>.B #include <auth.h>.PP.B AUTHORIZATION *getauthuid(\fIuid\fP).B uid_t \fIuid\fP;.PP.B AUTHORIZATION *getauthent().PP.B int storeauthent(\fIauth\fP).B AUTHORIZATION *\fIauth\fP;.PP.B void setauthent().PP.B void setauthfile(\fIpathname\fP).B char *\fIpathname\fP;.PP.B int endauthent().fi.SH Description.NXR "getauthuid routine".NXR "getauthent routine".NXR "storeauthent routine".NXR "setauthent routine".NXR "setauthfile routine".NXR "endauthent routine".NXR "auth database (general)" "getting/setting entry".PPThe.PN getauthuidfunction looks up the auth entry for the specified user IDand returns a pointer to a static area containing it..PPThe .PN getauthentfunction retrieves the next sequential entry from the auth database andreturns a pointer to a static area containing it..PPThe.PN storeauthentfunction stores the specified auth entry into thelocal auth database, overwriting any existing entry with thesame \fIa_uid\fP field..PPThe .PN setauthentfunction sets a pointer to the beginning of the auth database.This function is used with.PN getauthentto make multiple passes through the auth database..PPThe.PN setauthfilefunction sets the pathname of the file to be used for thelocal auth database in all subsequent operations..PPThe.PN endauthentfunction closes the auth database. Subsequent calls togetauthuid, getauthent, or storeauthent reopen it..PPThe auth database can be distributed via the BIND/Hesiodnaming service..SH RestrictionsOnly the superuser and members of the group.I authreadmay read information from the auth database..PPOnly the superuser may modify the auth database..PPThe auth database cannot be distributed via the Yellow Pages service..PPWhen the auth database may be served by BIND/Hesiod, a separate Kerberosinitialization is necessary prior to using any of the .PN getauthuidfunctions..PPThe values returned by .PN getauthentand .PN getauthuidpoint to a static area which is overwritten when subsequent calls are made..SH Return ValuesFunctions which return a pointer value return thenull pointer(0) on EOF or error.Other functions return zero (0) on success and a negative valueon failure..SH Files.PN /etc/auth.[pag,dir].SH See Alsogetpwent(3), auth(5), edauth(8).br%%DNSecUsers%%.br%%DNSecAdmin%%.br%%DNBIND/Hes%%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -