You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, September 6th 2004, 9:11am

su and no permissons to use x/kde

Hi there!

I think this a bit more general question, not special KDE but I think its ok in here, if not.. please let me know, and sorry :-)

When I work in DKE a a normal user and become root in the console using "su" I cannot start any programm using X-Server...

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

is what I get ...

Can someone help me along with that?

Thanks, greetings, Sascha

2

Monday, September 6th 2004, 1:44pm

Re: su and no permissons to use x/kde

Quoted

Original von TheOneBeyond

Hi there!

I think this a bit more general question, not special KDE but I think its ok in here, if not.. please let me know, and sorry :-)

When I work in DKE a a normal user and become root in the console using "su" I cannot start any programm using X-Server...

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

is what I get ...

Can someone help me along with that?

Thanks, greetings, Sascha

The permissions to open an X window are independent of the UNIX permissions ("I am root, I can do everything" is not true here.).

- If you're alone on your machine and high security is not a priority you could say: "xhost +localhost" on the command line. This allows access to any user on your local machine.

- Alternatively, if you're running an sshd that allows root logins (again a security question) you could use "ssh -X root@localhost" instead of "su - root". This uses the X11 forwarding feature of ssh.

- There's also the kdesu program: Try "kdesu yourprogramname" on the command line.

3

Monday, September 6th 2004, 1:49pm

Hey thanks!

That works perfectly!
Exactly what I needed ...!

Tanks again! :-)

Greetings, Sascha