Re: attibutes of lockfile created by setlock
[email protected] (Paul Jarc) Fri, 11 Apr 2008 14:45:45 -0400
| Newsgroups | gmane.org.djb.miscellaneous |
|---|---|
| Organization | What did you have in mind? A short, blunt, human pyramid? |
| Message-ID | <[email protected]> |
Otavio Exel <[email protected]> wrote: > The problem is that 2+ different users will be sharing this lockfile and > setlock creates it with attributes (-rw------- user user) that prevents > other users from locking it even after the first user has unlocked; The first thing you do after locking the file could be changing the permissions to make the file accessible by other users. > I'm running debian and I'd like to place the lockfile in /var/lock so > creating the file beforehand will not work... Why not? paul