Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 1996 10:53:22 -0800 (PST)
From:      Bryan Ogawa at Work <bogawa@netvoyage.net>
To:        "Miguel A.L. Paraz" <map@iphil.net>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: safe way to remove a user
Message-ID:  <Pine.BSF.3.91.960228105135.5155B-100000@digital.netvoyage.net>
In-Reply-To: <199602260246.KAA13386@marikit.iphil.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 26 Feb 1996, Miguel A.L. Paraz wrote:

> Hello,
> 
> What's the safe way of removing a user automatically, without 
> manual editing through vipw?  How about deleting the entry from the 
> password files and rebuilding the database - how can it be made
> safe by "locking" the password file?

I believe that the lock works by flock()ing the /etc/master.passwd file.  
The adduser command has the code to do this somewhere or other (in perl).

bryan

> 
> thanks,
> -- 
> miguel a.l. paraz -- map@iphil.net -- http://www.iphil.net/user/map/
>                      iphil communications, makati city, philippines
> 

Bryan K. Ogawa
Questions or Problems with NetVoyage?  help@netvoyage.net
Check out the NetVoyage HelpWeb at..   <URL: http://www.netvoyage.net/~help/>;




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960228105135.5155B-100000>