Query: pw_getconf
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PW_GETCONF(3) BSD Library Functions Manual PW_GETCONF(3)NAMEpw_getconf, pw_getpwconf -- password encryption configuration access functionLIBRARYSystem 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);DESCRIPTIONThe 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.confERRORSpw_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 ALSOpasswd(5), passwd.conf(5)HISTORYThe pw_getconf() function first appeared in NetBSD 1.6.BSDMay 4, 2010 BSD
Related Man Pages |
---|
getpwent(3) - redhat |
setpwent(3) - redhat |
pw_getprefix(3) - netbsd |
pw_lock(3) - netbsd |
passwd.conf(5) - netbsd |
Similar Topics in the Unix Linux Community |
---|
sorting left-justified numeric values |
NetBSD 6.1.2: apm and admd not found |
RFC - Korn shell prompt |
BSD Unix Toolbox: 1000+ Commands for FreeBSD, OpenBSD, and NetBSD |