Re: browsing root's files in Konqueror as user


Subject: Re: browsing root's files in Konqueror as user
From: lcollins (lcollins@gci.net)
Date: Mon Oct 20 2003 - 10:20:36 AKDT


 

Jim, if you use KDE then you can hit alt and F2 keys to open up the run
command option, fill in konqueror, click on options, check the "run as
different user", make sure root is selected under username and then fill in
the password field below. Hope this helps.

Lonnie

Jim Dory wrote:
Well, I appreciate the answers! Gives me something to look for. But for
immediate gratification I tried xhost+root:local under both user and root
andgot the error message of no such file or directory. I did a whereis and
found xhost in some usr/bin/X11 and usr/X11R6/bin type directories and tried
the command there with the same results. I did a 'xhost localhost' and that
returned the message 'adding localhost to access control list', so I know it
did something. But still no luck with the other 'xhost+root:local' command..
maybe syntax is wrong. Looking at the man file but not seeing the anwer.
Weather is not too bad so guess I'll head out and do some work on the house
and put this for later. cheers, Jim Justin Dieters wrote: 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
doesnot 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>[1]
with 'unsubscribe' in the message body. --------- To unsubscribe, send email
to <aklug-request@aklug.org>[2] with 'unsubscribe' in the message body.

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



This archive was generated by hypermail 2a23 : Mon Oct 20 2003 - 10:21:16 AKDT