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

Bug#544942: /etc/init.d/nscd should set PATH to /sbin:...



Lubomir Host wrote:
> On Sat, Sep 05, 2009 at 10:49:31AM +0200, Lubomir Host wrote:
>> On Sat, Sep 05, 2009 at 09:28:29AM +0200, Vincent Danjean wrote:
>>> Lubomir Host wrote:
>>>> On Fri, Sep 04, 2009 at 02:25:30PM +0000, Clint Adams wrote:
>>>>> On Thu, Sep 03, 2009 at 10:21:01PM +0200, Lubomir Host wrote:
>>>>>> 22:19 root@Apollo [~] ##: crontab -l | grep nscd
>>>>>> * * * * * if [ -z "`pidof nscd`" ]; then /etc/init.d/nscd restart; fi
>>>>> How and why have you removed /sbin from root's PATH?
>>>> It is fresh Debian installation, not heavy used or customized yet. Other
>>>> scripts does not have problem, only this one. 
>>> What you propose seems to be a workaround about an other bug (missing /sbin
>>> in root PATH). Before Debian decides to keep or not the workaround you
>>> suggest, we need to understand the underlining bug (missing /sbin in root PATH).
>>>   Can you tell us exactly how to reproduce this bug ? On my systems, I've
>>> no problem to restart nscd (because I have /sbin in my root PATH)
> 
> Any other hints? PATH in running cron process seems to be OK:
> 
> $ cat  /proc/`pidof cron`/environ
> SELINUX_INIT=YESCONSOLE=/dev/consoleTERM=linuxrootmnt=/rootLC_ALL=INIT_VERSION=sysvinit-2.86init=/sbin/initPATH=/sbin:/usr/sbin:/bin:/usr/binvga=791RUNLEVEL=2runlevel=2PWD=/VERBOSE=noLANG=en_US.UTF-8PREVLEVEL=Nprevious=NHOME=/SHLVL=2LC_CTYPE=_=/sbin/start-stop-daemon

"man 5 crontab" tells us that PATH is set to /usr/bin:/bin (and can be
overwritten by the user).
Now, we now exactly why you see this behaviour. We can let the nscd maintainers
decide what they want to do.

  Regards,
    Vincent

-- 
Vincent Danjean       GPG key ID 0x9D025E87         vdanjean@debian.org
GPG key fingerprint: FC95 08A6 854D DB48 4B9A  8A94 0BF7 7867 9D02 5E87
Unofficial pacakges: http://moais.imag.fr/membres/vincent.danjean/deb.html
APT repo:  deb http://perso.debian.org/~vdanjean/debian unstable main




Reply to: