pw_getpwconf man page on NetBSD

Man page or keyword search:  
man Server   9087 pages
apropos Keyword Search (all sections)
Output format
NetBSD logo
[printable version]

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

NAME
     pw_getconf, pw_getpwconf — password encryption configuration access func‐
     tion

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 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 partic‐
     ular 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
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server NetBSD

List of man pages available for NetBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net