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

Re: /var/run/utmp



At 10:23 -0500 1999-03-19, Branden Robinson wrote:
On Tue, Mar 16, 1999 at 11:21:19AM +0100, Roland Rosenfeld wrote:
Maybe a stupid question, but does utmpd also change the permissions
and ownership of /dev/tty*? Please note, that this is the second
reason, why some programs have to run SUID root.

Hmm.  I'm starting to learn that utmpd is not the panacea I was hoping for.

utmpd has nothing to do with the tty* devices, in the case of UNIX98 ptys (/dev/pts/* and the grantpt()/unlockpt() functions) either the kernel handles setting the permissions and ownership (devpts or devfs filesystem) or there is also a setuid root program called pt_chown that does this when the kernel doesn't support it. Note that in glibc 2.1, the openpty() function calls grantpt()/unlockpt() internally.
--
Joel Klecker (aka Espy)                     <URL:http://web.espy.org/>
<URL:mailto:jk@espy.org>                  <URL:mailto:espy@debian.org>


Reply to: