Subject: Bug#3290: sysvinit path doesn't include /usr/local/{,s}bin

From: [email-masked]
Date: 12 Jun 1996 21:36:33 -0000

Package: sysvinit
Version: 2.62-1

/etc/init.d/boot sets up a path that doesn't include /usr/local/bin nor
/usr/local/sbin.  In my opinion, the PATH= from /etc/profile (supplied
by the bash package) should be used here as well.  It's rather silly
to have two different default paths for root.

-- 
Raul

---

From: Dominik Kubla <[email-masked]>
Date: Thu, 13 Jun 1996 15:34:04 +0200

>>>>> rdm  writes:

> /etc/init.d/boot sets up a path that doesn't include /usr/local/bin
> nor /usr/local/sbin.  In my opinion, the PATH= from /etc/profile
> (supplied by the bash package) should be used here as well.  It's
> rather silly to have two different default paths for root.

No it is not.  It is the basic law of system administration that during
system setup the PATH should be as short as possible and only include
_MACHINE_LOCAL_ path names (/usr/local might be shared over NFS!).

To make it short: The boot script should use the following PATH setting

  PATH=/sbin:/bin:/usr/sbin:/usr/bin

Note that the sbin directories come first to allow you to provide
static binaries like /sbin/sh to avoid dependency on possibly missing
shared libs.  Especially diskless systems need this! 

Dominik