help with understanding a BASH warning

bob 295 icanprogram-sKcZck+fQKg at public.gmane.org
Wed Aug 18 18:09:12 UTC 2010


Thanks.   I looked at my systems:

ssh client is sending LC_*
ssh server is accepting LC_*

So that doesn't seem to explain the warning.   If it was an ssh issue why is 
the warning coming from BASH?   More confusing to me is why it is coming from 
setlocale which is a function in the C library?

Thanks in advance for your help.

bob


On Wednesday 18 August 2010 12:58 pm, Alexandre Cavalcante Alencar wrote:
> Hi Bob,
>
> It sounds like you ssh server define which environment variables an
> user can send.
>
> Server side: /etc/ssh/sshd_config look for AcceptEnv - manpage
> sshd_config(5) Client side: /etc/ssh/ssh_config or ~/.ssh/config look for
> SendEnv - manpage ssh_config(5)
>
> When the client log in at the server, it send all the environment
> variables it was configured to send, but server may accept or not
> according to it's configuration.
>
> Best Regards,
>
> Alexandre Alencar
> http://blog.alexandrealencar.net/
> http://www.alexandrealencar.net/
> COBIT, ITIL, CSM, LPI, MCP-I
>
> On Tue, Aug 17, 2010 at 10:35 AM, bob 295 <icanprogram-sKcZck+fQKg at public.gmane.org> wrote:
> > When I run a BASH script from an ssh terminal session I seem to get this
> > warning:
> >
> > /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
> >
> > when I run
> >
> > locale
> >
> > at both ends of the ssh I seem to get same values for all the environment
> > variables which get listed.   ie. they are all set to en_US
> >
> > A quick Google didn't enlighten me as to why this warning comes up and
> > how I might get rid of it.
> >
> > Thanks in advance for all your help.
> >
> > bob
> > --
> > The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> > TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> > How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>
> --
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list