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

Re: Likewise su should not screw with PATH



On Sun, Dec 19, 1999 at 03:50:26PM -0500, Greg Stark wrote:
> 
> Likewise this functionality from su is misguided:
> 
>        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 super user.  This
>        may be changed with the ENV_PATH  and  ENV_SUPATH  defini-
>        tions in /etc/login.defs.
> 
> This path should be 
>  /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
> for both root and normal users.

#
# *REQUIRED*  The default PATH settings, for superuser and normal users.
#
# (they are minimal, add the rest in the shell startup files)
ENV_SUPATH	PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
ENV_PATH        PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

That is taken from the default login.defs in potato.

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`     bcollins@debian.org  -  collinbm@djj.state.va.us  -  bmc@visi.net    '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'


Reply to: