Re: Why does su change PATH on amd64 but not on hurd-i386 ?
On Wed, 2011-08-31 at 22:15 +0200, Thomas Schmitt wrote:
> Hi,
>
> i guess it is not intentional that on a freshly installed Debian GNU/Hurd
> $ su
> Password:
> PATH looks like inherited from my normal user.
> # echo $PATH
> /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/thomas
Yes it is!
> 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.
> 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
Reply to: