putspent(3c) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

putspent(3c)

Standard C Library Functions                                      putspent(3C)



NAME
       putspent - write shadow password file entry

SYNOPSIS
       #include <shadow.h>

       int putspent(const struct spwd *p, FILE *fp);

DESCRIPTION
       The putspent() function is the inverse of getspent(). See getspnam(3C).
       Given a pointer to a spwd structure created  by  getspent()  or  getsp‐
       nam(),  putspent() writes a line on the stream fp that matches the for‐
       mat 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  mem‐
       ber  of the spwd structure is −1, or if sp_flag is 0, the corresponding
       /etc/shadow field is cleared.

RETURN VALUES
       The putspent() function returns  a  non-zero  value  if  an  error  was
       detected during its operation. Otherwise, it returns 0.

USAGE
       Since  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.

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ MT-LevelUnsafe


SEE ALSO
       getpwnam(3C), getspnam(3C), putpwent(3C), attributes(7)



Oracle Solaris 11.4               23 Jan 2008                     putspent(3C)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3