Forcing an user to only one window manager



I am in need to limiting an user to only one window
manager and came up with this little script to
hopefully add to all files in Sessions directory

#!/bin/sh
   if [ "$USER" = "john" ]; then
       exec /etc/X11/xdm/Xsession qvwm
   ELSE
       exec /etc/X11/xdm/Xsession IceWM
   fi

   So all users may be able to choose whatever they
want but john is forced onto qvwm

but the result is not what I hoped for, may someone
please help me with this?

thanks!

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]