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

Wednesday, October 5th 2005, 5:08pm

sudo in KDE 3.4.2 not working...

Previous to KDE 3.3 one would simply be able to do a sudo command to run another X app as a different user under KDE. Since I've installed 3.4.2 the other application does not have the right to access the display.

I'm guessing this have something to do with the upgrade to the complete new KDE package, but perhaps not.

Furthermore, doing a "xhost +localhost" does not solve the problem, I am required to do a "xhost +" before it works. This is of course a major inconvenience to running applications as another user.


BTW, anybod know why KDE does not support SUDOing natively rather than just SU'ing...? I hate typing passwords in all the time...

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Wednesday, October 5th 2005, 6:14pm

You have very likely also updated your X Server, it is the once that checks X11 authentifcation.

The new syntax for xhost is

xhost +local:username

Where username is the login name of the user you are running the application as, i.e. not your username

Cheers,
_
Qt/KDE Developer
Debian User

3

Thursday, October 6th 2005, 5:09pm

I probably did upgrade X as well, I can continue my quest for a proper answer in those forums -- as I understood, and had worked previously, a "sudo" command should take with it the XAuthority, thus I shouldn't need to do an "xhost" command. Am I wrong with that?