/etc/profile or /usr/local/etc/profile

Pete French pete at twisted.org.uk
Sat Jul 15 11:03:49 BST 2006

> bash doesn't read /usr/local/etc/profile though, it only likes 
> /etc/profile :(

See the rest of the email - it's looking for the system-wide shell settings
applicable to all shells, not just bash. Because that's part of the base
system it looks in /etc/profile. Any bash-specific config files will go
in /usr/local/etc however (though I dont know if there are any).

For the same reason, all programs which work with users check /etc/passwd.
Can you imagine what life would be like if some decided to
check in /usr/local/etc/passwd instead ? :-)


More information about the Ukfreebsd mailing list