getauthuid.3

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 74 行

3
74
字号
.TH getauthuid 3 .SH Namegetauthuid, storeauthent, 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 int storeauthent(\fIauth\fP).B AUTHORIZATION *\fIauth\fP;.PP.B void setauthfile(\fIpathname\fP).B char *\fIpathname\fP;.PP.B int endauthent().fi.SH Description.NXR "getauthuid subroutine".NXR "storeauthent subroutine".NXR "setauthfile subroutine".NXR "endauthent subroutine".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 storeauthentfunction will store the specified auth entry into thelocal auth database, overwriting any existing entry with thesame \fIa_uid\fP field..PPThe.PN setauthfilefunction will set the pathname of the file to be used for thelocal auth database in all subsequent operations..PPThe.PN endauthentfunctions closes the auth database.  Subsequent calls togetauthuid and storeauthent will reopen it..PPThe auth database may be distributed via the BIND/Hesiodnaming service..SH RestrictionsOnly the super-user and members of the group.I authreadmay read information from the auth database..PPOnly the super-user may modify the auth database..PPThe auth databse may not be distributed via the Yellow Pages service..SH Return ValuesFunctions which return a pointer value will return thenull pointer(0) on EOF or error.Other functions will 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\fISecurity Guide for Users and Programmers\fP.br\fISecurity Guide for Administrators\fP.br\fIGuide to the BIND/Hesiod Service\fP

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?