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

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



>>>>> 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


Reply to: