This is a discussion on Access denied within the Debian Linux support forums, part of the Debian Linux category; --> Jacob Tranholm wrote: > Henk Oegema wrote: >> >> I'm using Debian 4.0r1 with GUI KDE >> >> henkoegema@asterisk:~$ ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Jacob Tranholm wrote: > Henk Oegema wrote: >> >> I'm using Debian 4.0r1 with GUI KDE >> >> henkoegema@asterisk:~$ su >> Password: >> asterisk:/home/henkoegema# kate >> Xlib: connection to ":0.0" refused by server >> Xlib: No protocol specified >> >> kate: cannot connect to X server :0.0 >> > > Try 'sux' from command line instead of 'su'. > You have to install it (apt-get install sux)... > asterisk:/var/lib/asterisk/agi-bin# sux xauth: creating new authority file /root/.Xauthority asterisk:/var/lib/asterisk/agi-bin# kate Xlib: connection to ":0.0" refused by server Xlib: No protocol specified kate: cannot connect to X server :0.0 asterisk:/var/lib/asterisk/agi-bin# |
| |||
| On Sat, 13 Oct 2007 13:31:29 +0000, Henk Oegema wrote: [edit] > > I'm using Debian 4.0r1 with GUI KDE > > henkoegema@asterisk:~$ su > Password: > asterisk:/home/henkoegema# kate > Xlib: connection to ":0.0" refused by server Xlib: No protocol specified > > kate: cannot connect to X server :0.0 asterisk:/home/henkoegema# > > How do you login, with kdm or startx from a terminal? What are the contents of your .xsession file? What happens when you try the command string- kdesu kate /var/lib/asterisk/agi-bin If that didn't work try the command xhost +localhost then the command string to start kate as su. [...] > > henkoegema@asterisk:~$ man sudo > No manual entry for sudo Perhaps you don't have sudo installed. I thought sudo came with a default install but I could be wrong about that. |
| |||
| Rodney wrote: > On Sat, 13 Oct 2007 13:31:29 +0000, Henk Oegema wrote: > > [edit] > >> >> I'm using Debian 4.0r1 with GUI KDE >> >> henkoegema@asterisk:~$ su >> Password: >> asterisk:/home/henkoegema# kate >> Xlib: connection to ":0.0" refused by server Xlib: No protocol specified >> >> kate: cannot connect to X server :0.0 asterisk:/home/henkoegema# >> >> > > > How do you login, with kdm or startx from a terminal? What are the > contents of your .xsession file? I log into KDE automatically when I start the pc. I don't have a .xsession file (only .xsession-errors asterisk:/home/henkoegema# find / -name ".xsess*" /home/henkoegema/.xsession-errors /root/.xsession-errors asterisk:/home/henkoegema# > > What happens when you try the command string- kdesu kate > /var/lib/asterisk/agi-bin > > If that didn't work try the command xhost +localhost then the command > string to start kate as su. > > > [...] >> >> henkoegema@asterisk:~$ man sudo >> No manual entry for sudo > > Perhaps you don't have sudo installed. I thought sudo came with a default > install but I could be wrong about that. |
| |||
| Henk Oegema wrote: > asterisk:/var/lib/asterisk/agi-bin# sux > xauth: creating new authority file /root/.Xauthority > asterisk:/var/lib/asterisk/agi-bin# kate > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > > kate: cannot connect to X server :0.0 > asterisk:/var/lib/asterisk/agi-bin# Peculiar... I have just tested 'sux' at 3 different debian distributions running stable (etch), testing (lenny) and unstable (sid). And it worked using 'kate' at all of my test distributions. And given your description it sounds like you are trying to fail... I said "Try 'sux' from command line instead of 'su'", and as far as I can decrypt from your output, you have tried to use 'sux' within 'su' (not instead of). Lets take it simple step by step: 1) Start a new konsole (from your username) 2) Write: 'sux -' and press enter 3) Write: 'kate' and press enter -- Best regards Jacob Tranholm <http://jtranholm.dk/> Karl R. Popper: Observation statements and statements of experimental results are always interpretations of the facts observed. |
| |||
| Jacob Tranholm wrote: > And given your description it sounds like you are trying to fail... I > said "Try 'sux' from command line instead of 'su'", and as far as I can > decrypt from your output, you have tried to use 'sux' within 'su' (not > instead of). Perhaps I should explain how I came to that conclusion: In your output from 'sux' it is creating a /root/.Xauthority file. 'sux' should instead create a /home/your_username/.Xauthority in your home-directory when it is executed correctly... -- Best regards Jacob Tranholm <http://jtranholm.dk/> Karl R. Popper: Observation statements and statements of experimental results are always interpretations of the facts observed. |
| |||
| > > (2007/10/13) Rodney wrote: >> What happens when you try the command string- kdesu kate >> /var/lib/asterisk/agi-bin >> >> If that didn't work try the command xhost +localhost then the command >> string to start kate as su. >> ? [code] kdesu kate /var/lib/asterisk/agi-bin [code] xhost +localhost su password: kate /var/lib/asterisk/agi-bin ? |
| ||||
| Anton Ertl wrote: > Henk Oegema <henk@oegema.com> writes: >>Anton Ertl wrote: >> >>> Henk Oegema <henk@oegema.com> writes: >>>>henkoegema@asterisk:~$ su >>>>Password: >>>>asterisk:/home/henkoegema# kate >>>>Xlib: connection to ":0.0" refused by server >>>>Xlib: No protocol specified >>>> >>>>kate: cannot connect to X server :0.0 >>>>asterisk:/home/henkoegema# >>> >>> Easy: between su and kate, do the following: > ^^^^^^^^^^^^^^^^^^^ >>> >>> cp /home/henkoegema/.Xauthority ~ >> >>henkoegema@asterisk:~$ cp /home/henkoegema/.Xauthority ~ >>cp: `/home/henkoegema/.Xauthority' and `/home/henkoegema/.Xauthority' are >>the same file > > I have underlined the part you did not heed. Thanks Anton. You made me a very happy man. It's working fine now.! > > - anton |