Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!tinman.cis.ohio-state.edu!bob From: bob@tinman.cis.ohio-state.edu (Bob Sutterfield) Newsgroups: comp.windows.x Subject: Re: Automatic logoff from X Message-ID: Date: 14 Jun 89 22:23:47 GMT References: <2429@uswat.UUCP> <127300001@uxa.cso.uiuc.edu> Sender: news@tut.cis.ohio-state.edu Reply-To: Bob Sutterfield Organization: The Ohio State University Dept of Computer & Information Science Lines: 25 In-reply-to: gsg0384@uxa.cso.uiuc.edu's message of 23 May 89 22:21:00 GMT In article <127300001@uxa.cso.uiuc.edu> gsg0384@uxa.cso.uiuc.edu writes: From: rls@eatdust.uswest.COM () I would like to put an "exit" option on the window mgr menu which would not only exit the user from X, but also log them out of UNIX. Not all window managers have implemented an exit option. The simplest thing to do is to "alias X 'xstart;logout'" It wouldn't quite provide an automatic (that is, timeout-driven) logout from X, but how about a line like exec xinit /usr/local/bin/X11/awm -e $HOME/.X11init in .login (or .profile), then a menu entry like "Log out": f.exit in .awmrc? awm is among those that have implemented an exit option, and if awm is xinit's "blessed client" and it exits, your whole server will be shut down. If xinit replaced the login shell, then the user will be logged out.