Re: file locking by modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 24, 2001 at 06:38:17PM -0400, Adam Slattery wrote:
> lckpwdf(3) - undocumented, does it protect /etc/shadow?

>From lckpwdf(3C) (Solaris 8):

    SYNOPSIS
         #include <shadow.h>
    
         int lckpwdf(void);
    
         int ulckpwdf(void);
    
    DESCRIPTION
         The lckpwdf() and ulckpwdf() functions  enable  modification
         access  to  the  password databases through the lock file. A
         process first uses lckpwdf() to lock the lock file,  thereby
         gaining  exclusive  rights  to  modify  the   /etc/passwd or
         /etc/shadow password database.  See passwd(4) and shadow(4).
         Upon  completing modifications, a process should release the
         lock on the  lock  file  using  ulckpwdf().  This  mechanism
         prevents  simultaneous  modification  of  the password data-
         bases. The lock file, /etc/.pwd.lock, is used to  coordinate
         modification  access  to  the password databases /etc/passwd
         and  /etc/shadow.

Mike





[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux