[Techtalk] bash
Maria McKinley
maria at shadlen.org
Wed Jun 9 22:45:01 UTC 2010
Chris Wilson wrote:
> Hi Maria,
>
> On Wed, 9 Jun 2010, Maria McKinley wrote:
>
>> 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?
>
> Try /etc/profile or /etc/bash_profile? You'll need to reboot for changes
> to take effect.
>
> Cheers, Chris.
Hmm, is that true for /etc/bash.bashrc too? The change definitely
happens for the shell, but not for ssh, for example:
herbie:~# echo $NAG_KUSARI_FILE
herbie:~# bash
herbie:~# echo $NAG_KUSARI_FILE
/usr/local/matlab9/toolbox/NAG/license.lic
But maybe if I reboot it will work for ssh too? That would kind of suck,
this is a production machine I don't like to reboot.
thanks,
maria
More information about the Techtalk
mailing list