Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

putpwent(3c) [sunos man page]

putpwent(3C)						   Standard C Library Functions 					      putpwent(3C)

NAME
putpwent - write password file entry SYNOPSIS
#include <pwd.h> int putpwent(const struct passwd *p, FILE *f); DESCRIPTION
The 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 VALUES
The putpwent() function returns a non-zero value if an error was detected during its operation. Otherwise, it returns 0. USAGE
The 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. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
getpwnam(3C), putspent(3C), attributes(5) SunOS 5.10 29 Dec 1996 putpwent(3C)

Check Out this Related Man Page

putpwent(3C)															      putpwent(3C)

NAME
putpwent() - write password file entry SYNOPSIS
DESCRIPTION
is the inverse of (see getpwent(3C)). Given a pointer to a structure as created by or writes a line on the stream f, which matches the format of ignores the audit ID and audit flag in the structure; and create the corresponding entries used in the protected password database, used for trusted systems. which produces entries that match the trusted password database file format, must be used to create these entries. See getprpwent(3). DIAGNOSTICS
returns non-zero if an error was detected during its operation; otherwise it returns zero. WARNINGS
HP-UX 11i Version 3 is the last release to support trusted systems functionality. FILES
System Password file SEE ALSO
getpwent(3C), getprpwent(3), passwd(4), prpwd(4), stdio(3S), fopen(3S), thread_safety(5). STANDARDS CONFORMANCE
putpwent(3C)
Man Page