How can I log a user out?

David Goebel david at muddcs.UUCP
Thu Jun 20 09:17:08 AEST 1985


Does anyone out there know of a quick way to log a user out from a C 
program without rummaging through memory for the pid of the login shell?

Editing the /etc/ttys file and sending SIGHUPs to init will kill all processes 
associated with that terminal, not just the user's processes.  If anyone has 
any clever idea's for doing this on 4.2BSD please email then to me and I will
summarize to the net.  Thanks.

						David Goebel
		              (tektronix!reed, all



More information about the Comp.unix.wizards mailing list