Hallo, Damir Buskulic wrote:
Not sure, but you should probably, as standard user, do a
xhost 127.0.0.1
A better method is to use xauth: 1. User me starts X me@host: startx 2. User me lists the X authorizaion keys me@host: xauth list unix:0: HASHMETHOD VERYLONGHASHSTRING ..... # ^^^ HASHMETHOD and VERYLONGHASHSTRING are just placeholders 3. root wants to connect to me's X desktop root@host: xauth add unix:0: HASHMETHOD VERYLONGHASHSTRING 4. root can now start any X program on me's X desktop
then root should be able to open a window.
By the way, I don't understand why this is necessary, i.e. why xhost is not set by default for the users (including root) on the machine which one uses.
some Linux distributions had this feature, but its not recommended. Any user on localhost could start an X program. If the program can be compromised, the attacker could get X users rights or maybe even root access! By using the above method, you can start X without listening on port 6000 (or similar) for incoming connections I don't know the exact switch to use ("X -help" will show you, I think its "X -notcp") So long, Guido