sudo lock file?

King, Daniel Daniel.King at
Wed Jan 15 17:31:29 EST 2003

Thanks, Todd.  lockf for HP-UX.  I'll be dusting off my c-manual for this item.

Thanks, April.  I was not planning to use RCS, but it may have application here.  I need to learn RCS anyway.

A. Daniel King,
sudo advocate

-----Original Message-----
From: Todd C. Miller 
Sent: Tuesday, January 14, 2003 7:48 PM
To: King, Daniel
Cc: sudo-users at
Subject: Re: sudo lock file?

The locking is done on the sudoers file itself, not the sudoers
temp file.  The actual locking is done by fileops.c in the current
version of sudo.  The exact method it uses depends on what is
available on the system but basically it will use lockf() if
that is available otherwise it will use flock() or, if all else
fails, it will use fcntl() locking.

Does that answer your question?

 - todd

More information about the sudo-users mailing list