Bob Doolittle schrieb:
On 09/08/10 10:50, Mario Garcia Ortiz wrote:
the setup so far is that each user has it's smartcard and can't login
as another user...
do you have by any chance an workaround to force the session to log
out using utaction when the smartcard is removed, i have read about
dtaction ExitSession but this doesn't seem to exist in solaris.
Right. dtaction is part of CDE, which nobody uses anymore. Unfortunately
Gnome doesn't supply a way to terminate a session (even your own)
non-interactively.
A generic way that does not require much context, but that will kill
*all* sessions of a user, if users can login multiple times, is
pkill -u $USER gnome-session
This can be used as the user or as root.
If you can figure out the pid of the session process for that session
you can do it in a more targeted way.
One possibility for that is to add a file containing the following to
/etc/dt/config/Xsession.d (dtlogin) or /etc/X11/xinit/xinitrc.d (path
may vary on Linux distros):
# This will be sourced by the sessions script
if [ -n "${SUN_SUNRAY_TOKEN:-}" ] ; then
/opt/SUNWut/bin/utaction -i -d "kill $$" &
fi
Depending on your robustness needs (do you need to prevent that the user
can kill the utaction?) more complicated solutions may be needed.
- Jörg
--
Jörg Barfurth http://blogs.sun.com/joergb
Disclaimer: I am employed by Oracle. The statements and opinions
expressed here are my own and do not necessarily represent those
of Oracle Corporation.
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users