[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pkg-shadow-devel
Subject:    Re: [Pkg-shadow-devel] Fix default path for root with "su"
From:       Nicolas =?iso-8859-1?Q?Fran=E7ois?= <nicolas.francois () centraliens ! net>
Date:       2009-11-01 17:01:15
Message-ID: 20091101170115.GA16182 () nekral ! nekral ! homelinux ! net
[Download RAW message or body]

Hello,

On Sun, Nov 01, 2009 at 11:28:56AM +0100, michel.hermier@gmail.com wrote:
> 
> According to the manual:
> 
>     The current environment is passed to the new shell. The value of
> $PATH is reset to /bin:/usr/bin for normal users, or
>     /sbin:/bin:/usr/sbin:/usr/bin for the superuser. This may be
> changed with the ENV_PATH and ENV_SUPATH definitions in
> /etc/login.defs.
> 
> So for me when doing a simple "su" invocation the $PATH should be
> "/sbin:/bin:/usr/sbin:/usr/bin" while "su foouser" should return
> "/bin:/usr/bin" when /etc/login.defs is not modified. But it is not
> the case, we unconditionally get "/bin:/usr/bin". Here is a patch that
> correct this behavior.

Thanks for the patch. It is now applied on the shadow's repository.
I also changed the documentation of ENV_SUPATH and libmisc/setupenv.c

Best Regards,
-- 
Nekral


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic