[Solved]Variable in /etc/environment

Kernels & Hardware, configuring network, installing services

[Solved]Variable in /etc/environment

Postby rastoku » 2020-05-03 13:42

Hi there,
I have tried to change env. default variable LANG. I added LANG=C to /etc/environment file, nothing change default variable still works after restart. Than I added LANG DEFAULT=C OVERRIDE="" to /etc/security/pam_env.conf, but nothing change after restar. I had to use "update-locale LANG=C" and new value was accepted. Why system does nothing with changes in /etc/environment and /etc/security/pam_env.conf, I did what "man environment" recommend, but without success. Can anybody help what to do if I want to make changes with /etc/environment? I do not want to use .bashrc or .profile etc. files, I am interested in /etc/evironment only.
Thank you
Last edited by rastoku on 2020-05-04 12:22, edited 1 time in total.
rastoku
 
Posts: 2
Joined: 2020-05-03 11:20

Re: Variable in /etc/environment

Postby Head_on_a_Stick » 2020-05-03 16:56

rastoku wrote:Why system does nothing with changes in /etc/environment and /etc/security/pam_env.conf

Looks like /etc/default/locale overrides the setting in /etc/environment.

I export a few variables through /etc/environment and they work for me.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12744
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Variable in /etc/environment

Postby rastoku » 2020-05-04 12:21

I have commented lines in /etc/default/locale and now is /etc/environment working correctly. Thank you
rastoku
 
Posts: 2
Joined: 2020-05-03 11:20


Return to System configuration

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable