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

Re: /var/run/utmp



On Fri, Mar 19, 1999 at 10:23:22AM -0500, Branden Robinson wrote:
> On Tue, Mar 16, 1999 at 11:21:19AM +0100, Roland Rosenfeld wrote:
> > > Really, please put it back soon. It's time to migrate. It's *BAD* to
> > > have stuff sitting around setuid root just so it can muck with the
> > > utmp file.
> > 
> > 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.
> 
> *sigh*  There has to be a better way.

Well, the tty issue is cleared up if you use the Unix98 PTY functions.
The utmp issue is a little harder. Capabilites would fix this, if they
ever get fully implemented. I'm inclined to just forget about logging
xterm sessions, it's not worth the trouble.

Mike Stone


Reply to: