[Techtalk] bash
Chris Frey
cdfrey at foursquare.net
Wed Jun 9 22:44:23 UTC 2010
On Wed, Jun 09, 2010 at 03:33:30PM -0700, Maria McKinley wrote:
> Hey there,
>
> Quick question, hopefully not too dumb. I want to export a variable to
> be available to everyone when they log on, but it seems that when one
> ssh's in to our machines, the /etc/bash.bashrc isn't being read. Where
> else can I put it?
Bash loads init scripts differently depending on whether it is a login
shell or not. For login shells (like ssh), try /etc/profile.
The messy details are in the bash man page under the "INVOCATION" section. :-)
- Chris
More information about the Techtalk
mailing list