: This is perhaps a silly question, but anyway:
: Where should I add extra-paths (as default) for *ALL* users?
Every script that I write sources /usr/bin/csspath (/usr/bin/csspath.pl
for perl scripts) which I use to set up system wide environment variables
such as PATH, TERMCAP, TERMINFO, or whatever seems appropriate. csspath
has enough environment so that things like cron jobs will run without
dying (it sets TERM if it isn't already defined as some things that
one might run in cron will die if they don't have a proper TERM set).
Samples are available in the /pub/lbin directory on ftp.celestial.com.
Incidentally /usr/bin/csspath.pl is created by running our shtoperl
script on /usr/bin/csspath.
Both /bin/sh and /bin/ksh source /etc/profile on login. On systems we
maintain, I add a line at the end of /etc/profile to source additional
modifications that we like:
[ -x /etc/profile.css ] && . /etc/profile.css
The /etc/profile.css uses '. /usr/bin/csspath' to set the PATH.
UUCP: camco!bill 2835 82nd Avenue S.E. S-100
FAX: (206) 232-9186 Mercer Island, WA 98040; (206) 947-5591
SPEED COSTS MONEY -- HOW FAST DO YOU WANT TO GO?