Force user logout?
Alan Dayley
alandd at consultpros.com
Sun Feb 19 07:22:32 MST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Kurt Granroth wrote:
>
> I suppose that depends on your definition of "clean" :-)
Heh!
> # su <user>
> $ kill -9 -1
I've used this method before and the user ended up with a KDE
environment that was half messed up (desktop icons shuffled, a few other
settings lost, etc.) when they logged back in.
> If you want the processes to actually perform a logout procedure and
> your son is running KDE, then try this:
>
> # dcop --all-sessions --all-users ksmserver ksmserver logout 0 2 0
OK, this appears to have worked well except that it resulted in a
shutdown of the the system. This is not bad, I was just originally
looking for a way to logout but not shutdown. I'll go investigate dcop
commands.
Thanks.
Alan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)
iD8DBQFD+H8oDQw/VSQuFZYRAu30AJ0dZ77JRTAKJ3W4xQ5mTCxpkCo5lgCdHpAy
EtB9uth4GqhsyM1JpqragEU=
=dVGc
-----END PGP SIGNATURE-----
More information about the PLUG-discuss
mailing list