Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site muddcs.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!ittvax!dcdwest!sdcsvax!sdcrdcf!trwrb!scgvaxd!muddcs!david From: david@muddcs.UUCP (David Goebel) Newsgroups: net.unix-wizards Subject: How can I log a user out? Message-ID: <327@muddcs.UUCP> Date: Wed, 19-Jun-85 19:17:08 EDT Article-I.D.: muddcs.327 Posted: Wed Jun 19 19:17:08 1985 Date-Received: Sun, 23-Jun-85 02:34:47 EDT Reply-To: david@muddcs.UUCP (David Goebel) Distribution: net.unix-wizards Organization: Harvey Mudd College, Claremont, CA Lines: 12 Keywords: logout hangup 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