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

Re: ENV_SUPATH and MAIL_DIR in /etc/login.defs



On Mon, 11 Feb 2002, Glenn Maynard wrote:
> > > i think should be:
> > > ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
> > 
> > That would give /usr/local precedence. This is something we only want done
> > by the express wishes of the local administrator (i.e. he must go there and
> > change it himself).
> 
> Why is this different for the superuser?  The only person that can
> install to /usr/local to begin with is the local administrator.

Not always, it depends on local admin politics.

> This doesn't even seem to be used by many shells:
> 
> 10:55pm glenn@zewt.pts/3 [~] grep PATH /etc/profile
> PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
> 
> The definition in login.defs seems less useful when shells override
> it with their own paths by default.

Indeed. We will have to shalk up the ENV_SUPATH defaults to healthy
paranoia, then...

Now, the little fact that /etc/profile disagrees with /etc/login.defs is a
bug. And since base-files has precedence, it appears that the original
poster of this thread was right, ENV_SUPATH is indeed buggy.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



Reply to: