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

Re: su/sudo cannot X



Le Mercredi 18 Janvier 2006 16:53, Peter McAlpine a écrit :
> On Wed, Jan 18, 2006 at 03:37:25PM +0000, Noah Dain wrote:
> > On 1/18/06, Peter McAlpine <peter@aoeu.ca> wrote:
> > > Security feature or not... when I'm troubleshooting I sometimes want
> > > this disabled. If 'xhost +' no longer disables all access control, I'd
> > > be interested in hearing the new way to it.
> > >
> > > Thanks,
> > > -Peter
>
> <snip>
>
> > try putting this in /root/.bashrc:
> >
> > # allow root to run programs when another
> > # user is in X
> > if [ ! "$USER" = "root" ]; then
> > export XAUTHORITY=/home/$USER/.Xauthority
> > fi
> >
> > or just run the export line.  now you should be able to su to root and
> > run an X11 client locally.
>
> <snip>
>
> Thanks, but I'm also interested in hearing how to disable all access
> control for remote connections. How can I do this?
>
> -Peter

You can also try out "sux"
apt-get sux
it's doing the export for you...



Reply to: