Re: access to local Xserver?
I do have a problem though... when I 'su' as a regular user i do not have access to the local Xserver to run X-programs. This worked before i upgraded to KDE2.2. I'm sure it is just a setting somewhere, but i really do not know where to look... it may be related to the Authorize setting in the [X-:*-Core] section of kdmrc - set it to false, if you want no X security. since i don't like the above solution, i have this script in my root's .profile: ppid=`ps ho ppid $$` whose=`COLUMNS=1 ps heo user,ucmd $ppid` if test -n $whose -a ${whose%% *} != root; then eval $(echo $whose|sed -ne 's/.*\DISPLAY=\([^ ]\+\)\.*/export DISPLAY=\1/p; t end; d; :end q') test $DISPLAY xauth merge $(echo $whose|sed -ne 's/.*\HOME=\([^ ]\+\)\.*/\1\/\.Xauthority/p; t end; d; :end q') fi unset ppid whose Additionally, i would like to run software on a server at our university and view to output on my screen... this, ofcourse, does not work as well... as long, as these systems are in one nis-/nfs-domain, there should be no problem. for random hosts, you need something like that: delphi$ xauth nextract - delphi:0.0 | rsh is2101 /usr/X11R5/bin/xauth nmerge - delphi$ rsh is2101 is2101$ xterm -display delphi:0.0 you could automate this by extending your xon script. btw, the simplest solution for transporting xauth data is to use ssh with X forwarding enabled ... greetings -- Hi! I'm a .signature virus! Copy me into your ~/.signature, please! -- Nothing is fool-proof to a sufficiently talented fool.
Re: access to local Xserver?
On Saturday 15 September 2001 10:19, Oswald Buddenhagen wrote: btw, the simplest solution for transporting xauth data is to use ssh with X forwarding enabled ... Yes, this is what i do when i remote login to the server at the university, but since the upgrade that did not work no more... I'll try your code now... Egon
Re: access to local Xserver?
I do have a problem though... when I 'su' as a regular user i do not have access to the local Xserver to run X-programs. Check /etc/kde2/kdm/Xservers. If you see -nolisten tcp on the server line then you have TCP/IP access to the Xserver disabled. This became the default some time recently; I had the same problem also. Try deleting -nolisten tcp and see if things work for you. Ben.
Re: access to local Xserver?
Another hack to do this that is less insecure is (assuming you're logged in as somebody and running X): [EMAIL PROTECTED]:~$ su Password: [EMAIL PROTECTED]:/home/somebody# cp ~somebody/.Xauthority ~ --Tom Joseph On Saturday 15 September 2001 06:54 pm, Jason Boxman wrote: On Saturday 15 September 2001 03:59 am, Egon Willighagen wrote: Hi all, first of all i want to congratulate the packagers for their great effort in packaging KDE2.2! I do have a problem though... when I 'su' as a regular user i do not have access to the local Xserver to run X-programs. This worked before i upgraded to KDE2.2. I'm sure it is just a setting somewhere, but i really do not know where to look... I have the ultra insecure xhost + in my .xsession file. Root can access the X server fine. I do have notcp for X though. Additionally, i would like to run software on a server at our university and view to output on my screen... this, ofcourse, does not work as well... Can anyone help me out? regards, Egon