Re: logout another user

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

 



On Thu, 2006-07-27 at 21:45 +0000, Eckhard Kosin wrote:
> Hi,
> 
> how can I (as root) securely (will save the current session of that
> user) logoff another user?
> 
>          Thanks
> 
>                Ecki

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
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list

[Index of Archives]     [Fedora Desktop]     [Trinity Users]     [KDE]     [Gimp]     [Yosemite News]

  Powered by Linux