|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: safe logging xterm
Robert M. Haas (rhaas
cygnus.arc.nasa.gov)Thu, 16 Mar 1995 23:13:54 -0800
- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Paul C Leyland: "Re: Lotus Notes Encryption Methods"
- Previous message: Oliver Friedrichs: "Re: NFSbug bug and httpd problems"
- In reply to: Robert Banz: "Re: safe logging xterm"
- Next in thread: Bogdan Pelc: "Re: safe logging xterm"
> > Yes, it leaves setuid on a program that is way too large. Xterm tends > > to be setuid so it can write to utmp. Thats a bad reason to make a > > large program setuid. > Hm. Why not make utmp group "bob" writable, and make xterm setgid "bob"? Doesn't xterm also need to chown() some devices to the user logging in? It seems that xterm should only need root on startup and exit, though. If someone wrote a wrapper to take care of the stuff that xterm does on exit, (which could be small and setuid) then xterm could just exec() that when it exited. Of course you the wrapper would need to be reasonably smart about not letting people remove themselves from utmp who weren't really logging out. Maybe it could refuse to run if there were any processes who had that tty was their controlling terminal other than itself? Just a thought. ...Robert
- Next message: Paul C Leyland: "Re: Lotus Notes Encryption Methods"
- Previous message: Oliver Friedrichs: "Re: NFSbug bug and httpd problems"
- In reply to: Robert Banz: "Re: safe logging xterm"
- Next in thread: Bogdan Pelc: "Re: safe logging xterm"