Query: putpwent
OS: opensolaris
Section: 3c
Links: opensolaris man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
putpwent(3C) Standard C Library Functions putpwent(3C)NAMEputpwent - write password file entrySYNOPSIS#include <pwd.h> int putpwent(const struct passwd *p, FILE *f);DESCRIPTIONThe putpwent() function is the inverse of getpwent(). See getpwnam(3C). Given a pointer to a passwd structure created by getpwent(), getp- wuid(), or getpwnam(), putpwent() writes a line on the stream f that matches the format of /etc/passwd.RETURN VALUESThe putpwent() function returns a non-zero value if an error was detected during its operation. Otherwise, it returns 0.USAGEThe putpwent() function is of limited utility, since most password files are maintained as Network Information Service (NIS) files that cannot be updated with this function. For this reason, the use of this function is discouraged. If used at all, it should be used with put- spent(3C) to update the shadow file.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+SEE ALSOgetpwnam(3C), putspent(3C), attributes(5) SunOS 5.11 29 Dec 1996 putpwent(3C)
Related Man Pages |
---|
putpwent(3c) - opensolaris |
putpwent(3) - linux |
putpwent(3c) - hpux |
putpwent(3) - php |
putpwent(3) - x11r4 |
Similar Topics in the Unix Linux Community |
---|
Whant to write an entry in /etc/passwd (putpwent) |