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

Re: New!!!: Base-passwd 2.0



On Wed, 22 Jan 1997, Philippe Troin wrote:

> 
> On Wed, 22 Jan 1997 21:49:31 +0200 Lars Wirzenius (liw@iki.fi) wrote:
> 
> > Philippe Troin:
> > > Is there a debian standard way of [ locking /etc/passwd and friends ] ?
> 
> On Wed, 22 Jan 1997 21:49:31 +0200 Lars Wirzenius (liw@iki.fi) wrote:
> > I don't think so, at the moment. It should be doable, however. We
> > have a locking policy for mailboxes. I'm sure we can have one for
> > /etc/passwd.
> 
> Let's do it the same way that we lock the mailboxes then ?
> If I remember right, it consists in:
>   1) Create a dummy file in the same directory
>   2) Hardlink it to the local file (/etc/passwd.lock and /etc/group.lock, possibly /etc/shadow.lock)
>   3) Change your stuff...
>   4) Unlink the tmpfile and the dummy file.
> 
> And the only other known program to change the passwords is adduser, right ?
> So enabling passwd and al locking should be straightforward...
> About reading, if one reads a corrupted entry while the file is changing, this shouldn't cause too much hassle (bad login)...

I believe that FHS reguires lock files to go into /var/lock.
Is there any reason not to follow their lead?

--- Jean Pierre




--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: