home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: Comp.windows.x.motif,comp.sys.sun.admin
- Path: sparky!uunet!psinntp!intell!emcguire
- From: emcguire@intellection.com (Ed McGuire)
- Subject: Re: Administering users sharing workstations
- In-Reply-To: vandenbe@latcs2.lat.oz.au's message of Fri, 11 Dec 1992 02:00:44 GMT
- Message-ID: <EMCGUIRE.92Dec13102220@mother.intellection.com>
- Sender: emcguire@intellection.com (Ed McGuire)
- Organization: Intellection, Inc.
- References: <1992Dec11.020044.7115@latcs1.lat.oz.au>
- Date: Sun, 13 Dec 1992 16:22:20 GMT
- Lines: 44
-
- In article <1992Dec11.020044.7115@latcs1.lat.oz.au> vandenbe@latcs2.lat.oz.au (Thomas A. Vandenbelt) writes:
-
- As in our department, we share our worksatations, we like to have
- a menu option for logout. However, so far the only way I have
- been able to do this is to get our staff to close all windows
- and then kill motif (using f.quit_mwm).
-
- Is there a better way to get a user to the login prompt?
-
- If the session is controlled by xinit, then it ends when the user
- process quits. This is the .xinitrc process, unless .xinitrc doesn't
- exist in which case it is the default xterm process. If the last
- command in .xinitrc is "exec mwm", then the session ends when mwm
- dies. Add f.quit_mwm to the menu in /usr/lib/X11/system.mwmrc or the
- user's .mwmrc with a menu entry like "Quit _Q f.quit_mwm".
-
- Whether the user gets a new login prompt also depends on how xinit was
- started. What I would do is conditionally replace the user's login
- shell with it in the login rc file (.profile or .login), e.g.:
- if ( "` tty `" == "/dev/console" )
- echo -n "Starting window system in 5 seconds..."
- sleep 5
- exec xinit
- endif
- (Note that this snatch of code is a quick improvization; caveat
- emptor.)
-
- If the session is controlled by xdm, then the new login prompt is
- automatic when the session ends. The rule for this is similar to
- xinit, except that the initial process is the user's .xsession or
- /usr/lib/X11/xdm/Xsession. Either of these should replace themselves
- with mwm by "exec mwm" just as suggested in .xinitrc above. Then the
- f.quit_mwm menu entry will terminate the session and xdm will reissue
- a login prompt.
-
- This second case is in fact how we do it. Contact me if you have any
- questions.
-
- Regards, Ed
- --
- Ed McGuire 1603 LBJ Freeway, Suite 780
- Systems Administrator/ Dallas, Texas 75234
- Member of Technical Staff 214/620-2100, FAX 214/484-8110
- Intellection, Inc. <ed@intellection.com>
-