getauthent(3x) [ultrix man page]
getauthuid(3x) getauthuid(3x) Name getauthuid, getauthent, storeauthent, setauthent, setauthfile, endauthent - get/set auth entry Syntax #include <sys/types.h> #include <auth.h> AUTHORIZATION *getauthuid(uid) uid_t uid; AUTHORIZATION *getauthent() int storeauthent(auth) AUTHORIZATION *auth; void setauthent() void setauthfile(pathname) char *pathname; int endauthent() Description The function looks up the auth entry for the specified user ID and returns a pointer to a static area containing it. The function retrieves the next sequential entry from the auth database and returns a pointer to a static area containing it. The function stores the specified auth entry into the local auth database, overwriting any existing entry with the same a_uid field. The function sets a pointer to the beginning of the auth database. This function is used with to make multiple passes through the auth database. The function sets the pathname of the file to be used for the local auth database in all subsequent operations. The function closes the auth database. Subsequent calls to getauthuid, getauthent, or storeauthent reopen it. The auth database can be distributed via the BIND/Hesiod naming service. Restrictions Only the superuser and members of the group authread may read information from the auth database. Only the superuser may modify the auth database. The auth database cannot be distributed via the Yellow Pages service. When the auth database is served by BIND/Hesiod, a program must perform its own Kerberos initialization prior to using any of these func- tions. The values returned by and point to a static area which is overwritten when subsequent calls are made. Return Values Functions which return a pointer value return the null pointer(0) on EOF or error. Other functions return zero(0) on success and a nega- tive value on failure. Files See Also getpwent(3), auth(5), edauth(8) Security Guide for Users Security Guide for Administrators Guide to the BIND/Hesiod Service getauthuid(3x)
Check Out this Related Man Page
convauth(8) System Manager's Manual convauth(8) NAME
convauth - convert security authorization databases into database format SYNOPSIS
/usr/tcb/bin/convauth [-O] [-d dblist] [-q] [-r] [-u uid] [-v] [-H] FLAGS
-d dblist Specifies which databases to convert. Choose one or more of the letters d, f, p, t, or v. d - /etc/auth/system/default to /etc/auth/system/default.db f - /etc/auth/system/files to /etc/auth/system/files.db p - /tcb/files/auth/?/* to /tcb/files/auth.db and /var/tcb/files/auth.db t - /etc/auth/system/ttys to /etc/auth/system/ttys.db v - /etc/auth/system/devassign to /etc/auth/system/devassign.db If no -d option is given, the default database list is as though -d pt were specified. -q Suppresses non-error output. -r Keeps all migrated user-profile entries in /tcb/files/auth.db rather than /var/tcb/files/auth.db. -u uid Specifies the minimum general user UID. User-profile entries with uids lower than this value (default 100) are written to the /tcb/files/auth.db file, and profile entries with UIDs greater than or equal to this value are written to the /var/tcb/files/auth.db file. -v Gives more verbose messages. -O Reverts from *.db files to old-style databases. Not allowed for auth.db. -H Prints a help messages and exits with no further processing. DESCRIPTION
The convauth utility is used to convert existing ASCII system authorization database files to database format for faster access and updates. In the case of the ttys and user-profile data, this greatly improves the performance of login when using enhanced security. The convauth utility is executed by update installation scripts. EXAMPLES
The default conversion done to convert the user profiles and terminals information: # convauth The same conversion explicitly showing the default databases and general user UID assumptions: # convauth -d tp -u 100 Conversion of only the device assignment data: # convauth -d v RELATED INFORMATION
Commands: convuser(8), edauth(8), authck(8) Files: authcap(4), prpasswd(4), ttys(4), default(4), devassign(4), files(4) Security delim off convauth(8)