Re: AW: su von root zum user und gui applikationen anstarten
Hi, xhost + hilft nicht. habe hier ein beispiel einer verbindung zwischen zwei suse 9.1 rechnern: sre@re001:~> xhost access control enabled, only authorized clients can connect INET:re001.intern sre@re001:~> ssh pd001 Enter passphrase for key '/home/sre/.ssh/id_rsa': Last login: Wed Jul 6 14:42:52 2005 from re001.intern Have a lot of fun... sre@pd001:~ > sux - sux: Missing DISPLAY variable sre@pd001:~ > logout Connection to pd001 closed. sre@re001:~> ssh -X pd001 Enter passphrase for key '/home/sre/.ssh/id_rsa': Last login: Wed Jul 6 17:36:19 2005 from re001.intern Have a lot of fun... sre@pd001:~ > sux - Password: pd001(9.1):~ # sux - fjr Have a lot of fun... Directory: /home/fjr pd001 /home/fjr> xpdf Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion und ich sehe das xpdf, alles geht, auch ohne xhost +, nur das das xhost + selbst hier zwischen den suse 9.3 nix hilft. (ich will es eigentlich auch nicht benutzen, da es relat. unsicher ist, und ich weiss das es zwischen den suse 9.1 keine probleme gab) sebastian Hier zwischen einem lokalen suse 9.1 und remote suse 9.3:
sre@re001:~> ssh -X re003 Enter passphrase for key '/home/sre/.ssh/id_rsa': Last login: Wed Jul 6 14:41:49 2005 from re001.intern Have a lot of fun... re003 being added to access control list sre@re003:~> echo $DISPLAY localhost:11.0 sre@re003:~> sux Password: re003:/home/sre # set | grep DISP DISPLAY=localhost:11.0 re003:/home/sre # xpdf Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion re003:/home/sre # sux sre sre@re003:~> xpdf X11 connection rejected because of wrong authentication. X connection to localhost:11.0 broken (explicit kill or server shutdown). sre@re003:~> exit re003:/home/sre # sux - sre /usr/X11R6/bin/xhost: unable to open display "" sre@re003:~> export DISPLAY=localhost:11.0 sre@re003:~> xpdf Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion sre@re003:~> logout re003:/home/sre # sux - fjr Have a lot of fun... Directory: /home/fjr re003 /home/fjr> xpdf Error: Can't open display: re003 /home/fjr> export DISPLAY=localhost:11.0 export: Command not found. re003 /home/fjr> setenv DISPLAY localhost:11.0 re003 /home/fjr> xpdf X11 connection rejected because of wrong authentication. X connection to localhost:11.0 broken (explicit kill or server shutdown). re003 /home/fjr>
participants (1)
-
Sebastian Reitenbach