ssh -X and sudo: permission mayhem

Dexter Filmore Dexter.Filmore at gmx.de
Thu Sep 25 05:56:41 UTC 2008


Two machines, alice and bob

From alice ssh'ed into bob with

$ ssh -X user at bob
then *on* bob ran

$ sudo bash
to get a root prompt.
Then ran 
# konsole

which got forwarded to alice's X. As intended.

I did some root stuff like aptitude, moved stuff around with mc and such.

Then logged out and rebooted bob, logged in as user to find KDE bitching 
about:
DCOP not there
something about how it can't start ksmserver or sumsuch.
Hence no KDE session.
Checking permissions I find that user's .ICEauthority and .mc dir now belong 
to root:root instead of to user:user.

Why?

Finally I killed those files plus other stuff and /tmp and got a clean KDE 
session again.
How do I prevent this from happening again? What corrupted my permissions?

Dex



-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D- G++ e* h>++ r* y?
------END GEEK CODE BLOCK------

http://www.vorratsdatenspeicherung.de




More information about the kubuntu-users mailing list