Unix/Linux Go Back    

NetBSD 6.1.5 - man page for pw_getconf (netbsd section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

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

     pw_getconf, pw_getpwconf -- password encryption configuration access function

     System Utilities Library (libutil, -lutil)

     #include <util.h>

     pw_getconf(char *data, size_t len, const char *key, const char *option);

     pw_getpwconf(char *data, size_t len, const struct passwd *pwd, const char *option);

     The pw_getconf() function reads /etc/passwd.conf and retrieves the value of the option spec-
     ified 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 section, 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.


     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.

     passwd(5), passwd.conf(5)

     The pw_getconf() function first appeared in NetBSD 1.6.

BSD					   May 4, 2010					      BSD
Unix & Linux Commands & Man Pages : 2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 10:15 AM.