Why does the error "-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): Permission denied" Occurs while switching user accounts?
Issue
- While watching the user accounts following errors are encountered.
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): Permission denied
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): Permission denied
-bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): Permission denied
-bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): Permission denied
-bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): Permission denied
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.