Re: Why does su change PATH on amd64 but not on hurd-i386 ?
Svante Signell, le Wed 31 Aug 2011 23:21:34 +0200, a écrit :
> > On the hosting Debian GNU/Linux amd64 i see
> > $ echo $PATH
> > /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/thomas
> > $ su
> > Password:
> > # echo $PATH
> > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>
> Debian has fixed this already.
Mmm, when? Where?
> > It gets not performed on su.
>
> You need to use su - to get the root patch. Or add /sbin:/usr/sbin to
> your own .bashrc
Well, that's just a workaround.
Samuel
Reply to: