Query: putspent
OS: opensolaris
Section: 3c
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
putspent(3C) Standard C Library Functions putspent(3C)NAMEputspent - write shadow password file entrySYNOPSIS#include <shadow.h> int putspent(const struct spwd *p, FILE *fp);DESCRIPTIONThe putspent() function is the inverse of getspent(). See getspnam(3C). Given a pointer to a spwd structure created by getspent() or get- spnam(), putspent() writes a line on the stream fp that matches the format of /etc/shadow. The spwd structure contains the following members: char *sp_namp; char *sp_pwdp; int sp_lstchg; int sp_min; int sp_max; int sp_warn; int sp_inact; int sp_expire; unsigned int sp_flag; If the sp_min, sp_max, sp_lstchg, sp_warn, sp_inact, or sp_expire member of the spwd structure is -1, or if sp_flag is 0, the correspond- ing /etc/shadow field is cleared.RETURN VALUESThe putspent() function returns a non-zero value if an error was detected during its operation. Otherwise, it returns 0.USAGESince this function is for internal use only, compatibility is not guaranteed. For this reason, its use is discouraged. If used at all, if should be used with putpwent(3C) to update the password file.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+SEE ALSOgetpwnam(3C), getspnam(3C), putpwent(3C), attributes(5) SunOS 5.11 23 Jan 2008 putspent(3C)
Related Man Pages |
---|
endspent(3) - linux |
getspnam(3) - linux |
lckpwdf(3) - linux |
setspent(3) - linux |
sgetspent_r(3) - linux |
Similar Topics in the Unix Linux Community |
---|
Whant to write an entry in /etc/passwd (putpwent) |
/etc/shadow update password entry! ( getspent? ) |
Mass account creation |