Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pw_getpwconf(3) [netbsd man page]

PW_GETCONF(3)						   BSD Library Functions Manual 					     PW_GETCONF(3)

NAME
pw_getconf, pw_getpwconf -- password encryption configuration access function LIBRARY
System Utilities Library (libutil, -lutil) SYNOPSIS
#include <util.h> void pw_getconf(char *data, size_t len, const char *key, const char *option); void pw_getpwconf(char *data, size_t len, const struct passwd *pwd, const char *option); DESCRIPTION
The pw_getconf() function reads /etc/passwd.conf and retrieves the value of the option specified by option from the section given by key. If no suitable entry is found for the key an empty string will be returned in data. To retrieve default values the key default can be used. In this case, if /etc/passwd.conf does not exist or does not contain a default sec- tion, the built-in defaults will be returned. They are as follows: option data ypcipher old localcipher old An empty string is returned for all errors. pw_getpwconf() returns the value for the option specified for the particular user specified in pwd. If that option is not found, then it tries to find the option in the primary group of that user, and if that fails, then it returns the default entry. FILES
/etc/passwd.conf ERRORS
pw_getconf() and pw_getpwconf() will fail if: [ENOENT] There is no option named option in the specified key. [ENOTDIR] There is no key in /etc/passwd.conf named key. SEE ALSO
passwd(5), passwd.conf(5) HISTORY
The pw_getconf() function first appeared in NetBSD 1.6. BSD
May 4, 2010 BSD

Check Out this Related Man Page

UTIL(3) 						   BSD Library Functions Manual 						   UTIL(3)

NAME
util, libutil -- system utilities library LIBRARY
System Utilities Library (libutil, -lutil) DESCRIPTION
The util library is the system utilities library and contains various system-dependent utility routines used in a wide variety of system dae- mons. The abstracted functions are mostly related to pseudo-terminals and login accounting. These routines are NetBSD-specific and are not portable. Their use should be restricted. Declarations for these functions may be obtained from the include file <util.h>. The util library and the associated functions are imple- mented within the /usr/src/lib/libutil directory. LIST OF FUNCTIONS
Name Description disklabel_dkcksum(3) compute the checksum for a disklabel disklabel_scan(3) scan a buffer for a valid disklabel forkpty(3) tty utility function getbootfile(3) get the name of the booted kernel file getlabeloffset(3) get the sector number and offset of the disklabel getlabelsector(3) get the sector number and offset of the disklabel getmaxpartitions(3) get the maximum number of partitions allowed per disk getrawpartition(3) get the system ``raw'' partition login(3) login utility function login_cap(3) query login.conf database about a user class login_close(3) query login.conf database about a user class login_getcapbool(3) query login.conf database about a user class login_getcapnum(3) query login.conf database about a user class login_getcapsize(3) query login.conf database about a user class login_getcapstr(3) query login.conf database about a user class login_getcaptime(3) query login.conf database about a user class login_getclass(3) query login.conf database about a user class login_tty(3) tty utility function loginx(3) login utility function logout(3) login utility function logoutx(3) login utility function logwtmp(3) login utility function logwtmpx(3) login utility function opendisk(3) open a disk partition openpty(3) tty utility function pidfile(3) write a daemon pid file pidlock(3) locks based on files containing PIDs pw_abort(3) passwd file update function pw_copy(3) utility function for interactive passwd file updates pw_edit(3) utility function for interactive passwd file updates pw_error(3) utility function for interactive passwd file updates pw_getconf(3) password encryption configuration access function pw_getprefix(3) passwd file update function pw_init(3) utility function for interactive passwd file updates pw_lock(3) passwd file update function pw_mkdb(3) passwd file update function pw_prompt(3) utility function for interactive passwd file updates pw_scan(3) utility function for interactive passwd file updates pw_setprefix(3) passwd file update function secure_path(3) determine if a file appears to be ``secure'' setclasscontext(3) query login.conf database about a user class setusercontext(3) query login.conf database about a user class snprintb(3) bitmask output conversion sockaddr_snprintf(3) socket address formatting function strpct(3) decimal percent formatter ttyaction(3) ttyaction utility function ttylock(3) locks based on files containing PIDs ttymsg(3) ttymsg utility function ttyunlock(3) locks based on files containing PIDs FILES
/usr/lib/libutil.a static util library /usr/lib/libutil.so dynamic util library /usr/lib/libutil_p.a static util library compiled for profiling SEE ALSO
efun(3), intro(3) BSD
August 29, 2011 BSD
Man Page