Re: browsing root's files in Konqueror as user


Subject: Re: browsing root's files in Konqueror as user
From: Justin Dieters (enderak@gci.net)
Date: Sun Oct 19 2003 - 11:48:27 AKDT


Some distro's have it set up where you can't run X progams as other users, and some have it set up where you can. I know Redhat, and I think Mandrake, let you, but SuSE doesn't.

The short and sweet answer to fix it, is you need to run 'xhost localhost' as the user before su'ing to root.

This will fix it until you restart X, i think. To fix it permanantly, I suppose you could put the command into your ~.xinitrc, although there is probably a better way to fix the problem that I don't know about. :)

Also, KDE and Gnome both have facilities to start a program as root, and it will bring up a windows asking you for the root password when starting up the program. I use fluxbox, and when I want to burn a CD, I have my menu set up to run 'kdesu -c gtoaster' which lets me run it as root using kde's 'su' tool. I'm not sure how KDE and gnome set it up - iirc there is a checkbox in the shortcut properties that says "Run as other user". You could set up a special link for running Konqueror as root - some distros even set one up by default - RedHat 9 does, I think.

Justin

> The user that started X is the only user being allowed to open an app
> that requires X. When you 'su' to a different user that user does not
> have rights to run an app on X. The app that controls access to X is
> 'xhost'(man xhost). To allow root & others to run an X app I do 'xhost
> +root:local' I do this on my home network , not sure it is a good
> way to
> run elsewhere.

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Sun Oct 19 2003 - 11:48:25 AKDT