Skip to main content

Set a default locale for all users when accessing terminal/ssh

Comments

11 comments

  • quietFinn
    I think you can set it in /etc/locale.conf
    0
  • hmaddy
    you can set or modify locale here /etc/locale.conf
    0
  • garbintecnologia
    I set it in the /etc/locale.conf path but for other cPanel users it doesn't seem to have any updates This is with ec2-user or root (works) With another cPanel user:
    0
  • quietFinn
    I think that changes in /etc/locale.conf will take effect after reboot only .
    0
  • garbintecnologia
    I think that changes in /etc/locale.conf will take effect after reboot only .

    I changed this file as root, restarted the server, but the change had no effect on other users.
    0
  • cPJustinD
    Hello garbintecnologia! If you set LC_ALL to match LANG, do the users reflect the desired locale?
    0
  • garbintecnologia
    Hello garbintecnologia! If you set LC_ALL to match LANG, do the users reflect the desired locale?

    Actually LANG is blank. As in the image below. But if I log in as ec2-user or root the following is displayed: Maybe I forgot to mention, I'm using Cloudlinux 8, I don't know if that can influence anything.
    0
  • cPJustinD
    I understand; however, as the root user, if you set LC_ALL to match the value set for LANG, do cPanel users begin showing the proper locale?
    0
  • garbintecnologia
    I understand; however, as the root user, if you set LC_ALL to match the value set for LANG, do cPanel users begin showing the proper locale?

    Does not show to users.
    0
  • garbintecnologia
    What I noticed is that if I give the command export LANG="pt_BR.UTF-8" the locale is changed as in the image below. But if I restart the server the "default" settings come back.
    0
  • garbintecnologia
    Issue resolved. The issue itself was linked to CloudLinux and CageFS. I received the following support from the staff: [QUOTE]Please try to add the locale configuration file (/etc/locale.conf) to /etc/cagefs/cagefs.mp and then run: cagefsctl --force-update && cagefsctl --remount-all

    After that, there was an error not finding the /etc/locale.conf path, so I was instructed to do the following: [QUOTE]Please try to create the following file: # nano /etc/cagefs/conf.d/locale.cfg [custom] comment=locale.conf paths=/etc/locale.conf And run: cagefsctl --force-update

    Now everything works as expected, even after restarting the server. Thank you all.
    0

Please sign in to leave a comment.