Re: browsing root's files in Konqueror as user


Subject: Re: browsing root's files in Konqueror as user
From: W.D. McKinney (deem@wdm.com)
Date: Sun Oct 19 2003 - 13:17:41 AKDT


On Sun, 2003-10-19 at 13:09, 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 and got 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.
>

Hi Jim,

Hope you are well, been awhile since we spoke. I use
'xhost +' as user and then su to root. (Yes, I'm behind a firewall :-)

Dee

> 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 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 - 13:14:56 AKDT