On Fri, 20 Oct 2000 03:44 SoloCDM wrote:
>How do I close user accounts automatically after X closes, because X
>was initiated when selected users logged into their accounts?

If you are using a display manager (gdm, kdm, xdm) with graphical logins,
this should happen automatically.

If the user starts X themselves after loggin in at a text-based terminal
screen, then you can set it up so they automatically start X when logging in
and are logged out when exitting X. Just add these commands to the end of
their ~/.bash_login file:

  startx
  logout

Then make the file read only and owned by root:

  chown root.root /home/username/.bash_login
  chmod 644 /home/username/.bash_login

Tony
-- 
Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
Chat:  AOL/Yahoo: TonyG05    ICQ: 91183266
Linux. The choice of a GNU Generation. <http://www.linux.org/>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to