Re: password file locking

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

 



On Wed, 30 Aug 2000, Cooper wrote:

> Thanks for clearing up the permanent lockfile idea. It's totally clear
> to me how it works now.
> As you noted, the power-down-at-the-wrong-time problem can hurt this
> approach severely unless, like Fred Cohen suggested, the reading of the
> passwd file is done via a special function which checks for the
> resulting old passwd file if the new one doesn't appear in time or ever.
> While probably a working solution, I think it's *WAY* too much effort
> since there are probably a great many apps around that access passwd
> directly for reading.

see lib/util_file.c in the SAMBA_TNG branch (http://samba.org/cvs.html or
http://samba.org/cgi-bin/cvsweb/samba/source/lib/util_file.c)

we have a function startpwfile_race_condition_avoid() which may be what
you are looking for.





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

  Powered by Linux