[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using gmc (was: su in X )




> On Wed, Apr 11, 2001 at 11:05:16AM +0100, Dave Whiteley
> wrote:
> > I presume that this is a one off fix. You need to do it each
> > time you su?
> >
> > On 11-Apr-2001 Karsten M. Self wrote:
> > > Instead, as root:
> > >
> > >     $ xauth -merge ~$user/.xauthority
> > >
> > > ...for appropriate values of $user.
>
> Someone recently suggested to put
>
> if [ ! "$USER" = "root" ]; then
>     export XAUTHORITY=/home/$USER/.Xauthority
> fi
>
> in root's .bashrc, which gives you this permission whenever you
> su (but not "su -", which resets USER).


I'm now using the "export XAUTH" setup and it works fine, but it leads
me to another problem. If I've already started gmc, it apparently starts
up "gnome-name-service". Closing gmc (via the "exit" menu item) must not
kill that service because when I su to root and try to run gmc, it
complains about "gnome-name-service" already running (under a different
user, I assume). Usually, it just fails to launch. On occasion, it
causes gmc to segfault.

Has anyone else seen this ?? Is there a "fix" or work-around ??

Thanks in advance
Hall



Reply to: