View Single Post

   
  #5 (permalink)  
Old 02-16-2008, 06:26 AM
A. L. Meyers
 
Posts: n/a
Default Re: How to get X authorisation when su'ing?

Dave Uhring <daveuhring@yahoo.com> wrote in message news:<pan.2005.02.15.20.46.55.330554@yahoo.com>...
(snip)
> > But then one hasn't a root path, just like using sudo, correct?
> >
> > Any way to get the chicken and the egg?

>
> xauth
>
> or, less securely, 'xhost +localhost' and set root's DISPLAY to
> localhost:0
>
> You can even copy ~/.ICEauthority and ~/.Xauthority to /root.
>
> Or give your user root's PATH. But if root's PATH is defined in
> /root/.cshrc or /root/.bashrc
>
> OpenBSD 3.6 (GENERIC) #0: Thu Dec 23 17:29:11 CST 2004
>
> [~]$ su
> Password:
> [duhring]#
>
> Here root's shell is /bin/bash and as you can see the /root/.bashrc file
> was sourced. Note the change of prompt.


Thanks again. What about defining everyone in the wheel group to have
root's path? Where would be the best place and way to do this once
and for all, e.g.
/etc/login.conf?

Lux
Reply With Quote