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

Re: Changes to /etc/profile



> I've been asked to define PATH in /etc/profile only when it's not
> already defined:
> 
> -PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
> +[ "$PATH" ] || PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
> 
> so that users may rely exclusively on /etc/login.defs to change the PATH
> system-wide. I will probably do that, but if you know of any undesired
> side effects this may have, please speak now.

This fails to set a sane PATH if the /etc/profile-reading shell imports
a PATH of, say, "/bin:/usr/bin" (from /bin/login), or
"/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin" from sshd, or whatever
else likes to set its own special PATH.

Of course, it's not really /etc/profile's responsibility to compensate
for lack of consistency.


-- 
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: