Re: logout another user

On Thu, 2006-07-27 at 21:45 +0000, Eckhard Kosin wrote:

how can I (as root) securely (will save the current session of that
user) logoff another user?



You will need to know, users DISPLAY and SESSION_MANAGER variable value

Make sure, gconf key "/apps/gnome-session/options/logout_prompt"
is set to false, to remove login prompt.

ans set gconf key "/apps/gnome-session/options/auto_save_session"
to true to auto-save session.

To logout from a gnome-session.

/usr/bin/gnome-session-save --kill
sleep 5

# To kill non session aware applications.
killall metacity-dialog

Ritesh Khadgaray
LinuX N Stuff
Ph: +919822394463
Eat Right, Exercise, Die Anyway.

gnome-list mailing list