[Techtalk] bash
Maria McKinley
maria at shadlen.org
Wed Jun 9 22:47:33 UTC 2010
Chris Frey wrote:
> 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
>
Cool, I stuck it in /etc/profile, and did not have to reboot to have it
take effect! Thanks a bunch.
~maria
More information about the Techtalk
mailing list