[CentOS] Weird localectl behavior under CentOS 7

Nicolas Kovacs
Sat, 15 May 2021 11:10:53 -0000

Le 15/05/2021 ? 12:48, Nicolas Kovacs a ?crit?:
> Except when I display my LANG variable, it's still fr_FR.UTF-8 for
normal
> users... but en_US.utf8 for root.
>
> This looks like inconsistent or buggy behavior to me.

OK, I experimented some more, and now I'm puzzled.

1. When I'm connected directly (physically) to the server, LANG is set
correctly: en_US.utf8 for both root and non-root users.

2. When I'm opening a remote SSH session, LANG is set to fr_FR.UTF_8 for
both
root and non-root users.

What's going on here ?

--
Microlinux - Solutions informatiques durables
7, place de l'?glise - 30730 Montpezat
Site : https://www.microlinux.fr
Blog : https://blog.microlinux.fr
Mail : info at microlinux.fr
T?l. : 04 66 63 10 32
Mob. : 06 51 80 12 12