Unix Technical Forum

Access denied

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:~$ ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 01-19-2008, 09:41 AM
Henk Oegema
 
Posts: n/a
Default Re: Access denied

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#
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 01-19-2008, 09:41 AM
Rodney
 
Posts: n/a
Default Re: Access denied

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.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 01-19-2008, 09:41 AM
Henk Oegema
 
Posts: n/a
Default Re: Access denied

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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 01-19-2008, 09:41 AM
Jacob Tranholm
 
Posts: n/a
Default Re: Access denied

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 01-19-2008, 09:41 AM
Jacob Tranholm
 
Posts: n/a
Default Re: Access denied

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 01-19-2008, 09:41 AM
Rodney
 
Posts: n/a
Default Re: Access denied


>
> (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

?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 01-19-2008, 09:41 AM
Henk Oegema
 
Posts: n/a
Default Re: Access denied

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:16 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com