Re: Changes to /etc/profile
> I've been asked to define PATH in /etc/profile only when it's not
> already defined:
> +[ "$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 email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org