Set a default locale for all users when accessing terminal/ssh
Hi, I have a little problem that might be a locale issue.
When I access a file with the nano via terminal and this file has accent, it is not shown.
when querying the locale, the following is returned (access via user account):
So I set the root account locale to pt_BR.utf8
I would like to know if it is possible to assign this pt_BR.utf8 locale to all other users and to new users.
If so, how could I do it?
I would like a solution for this, as it affects editing data with accentuation via terminal.
Thank's
-
I think you can set it in /etc/locale.conf 0 -
you can set or modify locale here /etc/locale.conf 0 -
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 -
I think that changes in /etc/locale.conf will take effect after reboot only . 0 -
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 -
Hello garbintecnologia! If you set LC_ALL to match LANG, do the users reflect the desired locale? 0 -
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 -
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 -
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 -
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 -
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.
Comments
11 comments