Setting variable in /etc/environment has no effect











up vote
3
down vote

favorite












I have the following in my /etc/environment:



http_proxy=http://myproxy.net:12345


After rebooting the machine, I login and check the variable:



root@d6c44fa03243:/# echo $http_proxy
(empty)


Why is the variable not set?



Note: I must mention that this is a docker container, although I do not see why it would make a difference.



EDIT



More details about the system (Ubuntu 16.04.4 Xenial Xerus):



root@d6c44fa03243:/# uname -a
Linux d6c44fa03243 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

root@d6c44fa03243:/# cat /etc/issue
Ubuntu 16.04.4 LTS n l


EDIT2



According to the Ubuntu documentation:




/etc/environment



This file is specifically meant for system-wide environment variable
settings. It is not a script file, but rather consists of assignment
expressions, one per line.











share|improve this question
























  • Does it make a difference adding the line to /etc/profile?
    – nKn
    Mar 27 at 8:57










  • @nKn I want it to be active system wide, not only for shell sessions (superuser.com/a/664237/94612). But before I even think about workarounds, I would like to understand what is going on. Why is /etc/environment not being evaluated?
    – dangonfast
    Mar 27 at 9:02










  • According to this answer (superuser.com/a/664236): /etc/environment is not part of POSIX, it belongs to PAM (Pluggable Authentication Module), and only programs compiled with PAM support are able to use it (primarily login systems, which subsequently start the shell or user environment). This means it isn't even read by your shell..
    – nKn
    Mar 27 at 9:09










  • @nKn Which somehow contradicts This file is specifically meant for system-wide environment variable settings
    – dangonfast
    Mar 27 at 9:15















up vote
3
down vote

favorite












I have the following in my /etc/environment:



http_proxy=http://myproxy.net:12345


After rebooting the machine, I login and check the variable:



root@d6c44fa03243:/# echo $http_proxy
(empty)


Why is the variable not set?



Note: I must mention that this is a docker container, although I do not see why it would make a difference.



EDIT



More details about the system (Ubuntu 16.04.4 Xenial Xerus):



root@d6c44fa03243:/# uname -a
Linux d6c44fa03243 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

root@d6c44fa03243:/# cat /etc/issue
Ubuntu 16.04.4 LTS n l


EDIT2



According to the Ubuntu documentation:




/etc/environment



This file is specifically meant for system-wide environment variable
settings. It is not a script file, but rather consists of assignment
expressions, one per line.











share|improve this question
























  • Does it make a difference adding the line to /etc/profile?
    – nKn
    Mar 27 at 8:57










  • @nKn I want it to be active system wide, not only for shell sessions (superuser.com/a/664237/94612). But before I even think about workarounds, I would like to understand what is going on. Why is /etc/environment not being evaluated?
    – dangonfast
    Mar 27 at 9:02










  • According to this answer (superuser.com/a/664236): /etc/environment is not part of POSIX, it belongs to PAM (Pluggable Authentication Module), and only programs compiled with PAM support are able to use it (primarily login systems, which subsequently start the shell or user environment). This means it isn't even read by your shell..
    – nKn
    Mar 27 at 9:09










  • @nKn Which somehow contradicts This file is specifically meant for system-wide environment variable settings
    – dangonfast
    Mar 27 at 9:15













up vote
3
down vote

favorite









up vote
3
down vote

favorite











I have the following in my /etc/environment:



http_proxy=http://myproxy.net:12345


After rebooting the machine, I login and check the variable:



root@d6c44fa03243:/# echo $http_proxy
(empty)


Why is the variable not set?



Note: I must mention that this is a docker container, although I do not see why it would make a difference.



EDIT



More details about the system (Ubuntu 16.04.4 Xenial Xerus):



root@d6c44fa03243:/# uname -a
Linux d6c44fa03243 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

root@d6c44fa03243:/# cat /etc/issue
Ubuntu 16.04.4 LTS n l


EDIT2



According to the Ubuntu documentation:




/etc/environment



This file is specifically meant for system-wide environment variable
settings. It is not a script file, but rather consists of assignment
expressions, one per line.











share|improve this question















I have the following in my /etc/environment:



http_proxy=http://myproxy.net:12345


After rebooting the machine, I login and check the variable:



root@d6c44fa03243:/# echo $http_proxy
(empty)


Why is the variable not set?



Note: I must mention that this is a docker container, although I do not see why it would make a difference.



EDIT



More details about the system (Ubuntu 16.04.4 Xenial Xerus):



root@d6c44fa03243:/# uname -a
Linux d6c44fa03243 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

root@d6c44fa03243:/# cat /etc/issue
Ubuntu 16.04.4 LTS n l


EDIT2



According to the Ubuntu documentation:




/etc/environment



This file is specifically meant for system-wide environment variable
settings. It is not a script file, but rather consists of assignment
expressions, one per line.








ubuntu environment-variables






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 at 9:06

























asked Mar 27 at 8:39









dangonfast

1,03021124




1,03021124












  • Does it make a difference adding the line to /etc/profile?
    – nKn
    Mar 27 at 8:57










  • @nKn I want it to be active system wide, not only for shell sessions (superuser.com/a/664237/94612). But before I even think about workarounds, I would like to understand what is going on. Why is /etc/environment not being evaluated?
    – dangonfast
    Mar 27 at 9:02










  • According to this answer (superuser.com/a/664236): /etc/environment is not part of POSIX, it belongs to PAM (Pluggable Authentication Module), and only programs compiled with PAM support are able to use it (primarily login systems, which subsequently start the shell or user environment). This means it isn't even read by your shell..
    – nKn
    Mar 27 at 9:09










  • @nKn Which somehow contradicts This file is specifically meant for system-wide environment variable settings
    – dangonfast
    Mar 27 at 9:15


















  • Does it make a difference adding the line to /etc/profile?
    – nKn
    Mar 27 at 8:57










  • @nKn I want it to be active system wide, not only for shell sessions (superuser.com/a/664237/94612). But before I even think about workarounds, I would like to understand what is going on. Why is /etc/environment not being evaluated?
    – dangonfast
    Mar 27 at 9:02










  • According to this answer (superuser.com/a/664236): /etc/environment is not part of POSIX, it belongs to PAM (Pluggable Authentication Module), and only programs compiled with PAM support are able to use it (primarily login systems, which subsequently start the shell or user environment). This means it isn't even read by your shell..
    – nKn
    Mar 27 at 9:09










  • @nKn Which somehow contradicts This file is specifically meant for system-wide environment variable settings
    – dangonfast
    Mar 27 at 9:15
















Does it make a difference adding the line to /etc/profile?
– nKn
Mar 27 at 8:57




Does it make a difference adding the line to /etc/profile?
– nKn
Mar 27 at 8:57












@nKn I want it to be active system wide, not only for shell sessions (superuser.com/a/664237/94612). But before I even think about workarounds, I would like to understand what is going on. Why is /etc/environment not being evaluated?
– dangonfast
Mar 27 at 9:02




@nKn I want it to be active system wide, not only for shell sessions (superuser.com/a/664237/94612). But before I even think about workarounds, I would like to understand what is going on. Why is /etc/environment not being evaluated?
– dangonfast
Mar 27 at 9:02












According to this answer (superuser.com/a/664236): /etc/environment is not part of POSIX, it belongs to PAM (Pluggable Authentication Module), and only programs compiled with PAM support are able to use it (primarily login systems, which subsequently start the shell or user environment). This means it isn't even read by your shell..
– nKn
Mar 27 at 9:09




According to this answer (superuser.com/a/664236): /etc/environment is not part of POSIX, it belongs to PAM (Pluggable Authentication Module), and only programs compiled with PAM support are able to use it (primarily login systems, which subsequently start the shell or user environment). This means it isn't even read by your shell..
– nKn
Mar 27 at 9:09












@nKn Which somehow contradicts This file is specifically meant for system-wide environment variable settings
– dangonfast
Mar 27 at 9:15




@nKn Which somehow contradicts This file is specifically meant for system-wide environment variable settings
– dangonfast
Mar 27 at 9:15










3 Answers
3






active

oldest

votes

















up vote
1
down vote













Because UNIX tools are built with transparency in mind, you can find the answer with the help of grep. It doesn't matter if you are working with a full OS or a container (the later just means it you might have to take some extra steps to install tools you need for things to become transparent).



Check that you have grep installed on your OS and run sudo grep -R "/etc/environment" /etc/*. This will search all the system scripts and configurations to see which ones use use this file. On a default ubuntu/xenial64 vagrant box, the scripts and configurations that use this file are mostly in /etc/init.d/ /etc/pam.d/, and /etc/rc.*.d/.



The following configurations are how variables in /etc/environment get set in my shell:



/etc/pam.d/login
/etc/pam.d/su
/etc/pam.d/sshd



From man pam_env:




The pam_env PAM module allows the (un)setting of environment variables.
...



This module can also parse a file with simple KEY=VAL pairs on separate lines (/etc/environment by default). You can change the default file to parse, with the envfile flag and turn it on or off by setting the readenv flag to 1 or 0 respectively.
...




Do a similar search on your docker container. You can check if your container uses pam_env.so.



Most likely the best solution is to have your start up process create environment variables from /etc/environment but that advice is given without understanding what you are building. The uses in `/etc/rc*.d/ might be good examples for how to accomplish this.



Most people follow @ben-njeri's advice and set variables in the default configuration files for the bash shell.






share|improve this answer




























    up vote
    0
    down vote













    Configure /etc/profile or ~/.bashrc or ~/.bash_profile files to export the variables whenever a new shell is started.



    /etc/profile is for system-wide and others are for specific users.



    Just add the lines like below at the end:



    export http_proxy=”http://myproxy.net:12345”
    export ftp_proxy=”http://myproxy.net:12345”
    export https_proxy=”http://myproxy.net:12345"


    So each time you start a shell, the variables are loaded and you can use them.






    share|improve this answer




























      up vote
      0
      down vote













      I have (had) this problem on Ubuntu 18.04. I couldn't get /etc/environment to work at all, but used a script in /etc/profile.d/ instead (as documented here), and that did work.



      For more info, see my answer to this related question. Hope it helps :)






      share|improve this answer










      New contributor




      bszom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.














      • 2




        While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
        – Dave M
        Nov 12 at 13:20










      • @DaveM Please note that the essential part of the answer was included here, and that I'm linking to a StackExchange partner site. I've tried to make the answer a little more clear in terms of what worked, that the links are for more information, and added another link (heh).
        – bszom
        Nov 13 at 12:38











      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














       

      draft saved


      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1308298%2fsetting-variable-in-etc-environment-has-no-effect%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote













      Because UNIX tools are built with transparency in mind, you can find the answer with the help of grep. It doesn't matter if you are working with a full OS or a container (the later just means it you might have to take some extra steps to install tools you need for things to become transparent).



      Check that you have grep installed on your OS and run sudo grep -R "/etc/environment" /etc/*. This will search all the system scripts and configurations to see which ones use use this file. On a default ubuntu/xenial64 vagrant box, the scripts and configurations that use this file are mostly in /etc/init.d/ /etc/pam.d/, and /etc/rc.*.d/.



      The following configurations are how variables in /etc/environment get set in my shell:



      /etc/pam.d/login
      /etc/pam.d/su
      /etc/pam.d/sshd



      From man pam_env:




      The pam_env PAM module allows the (un)setting of environment variables.
      ...



      This module can also parse a file with simple KEY=VAL pairs on separate lines (/etc/environment by default). You can change the default file to parse, with the envfile flag and turn it on or off by setting the readenv flag to 1 or 0 respectively.
      ...




      Do a similar search on your docker container. You can check if your container uses pam_env.so.



      Most likely the best solution is to have your start up process create environment variables from /etc/environment but that advice is given without understanding what you are building. The uses in `/etc/rc*.d/ might be good examples for how to accomplish this.



      Most people follow @ben-njeri's advice and set variables in the default configuration files for the bash shell.






      share|improve this answer

























        up vote
        1
        down vote













        Because UNIX tools are built with transparency in mind, you can find the answer with the help of grep. It doesn't matter if you are working with a full OS or a container (the later just means it you might have to take some extra steps to install tools you need for things to become transparent).



        Check that you have grep installed on your OS and run sudo grep -R "/etc/environment" /etc/*. This will search all the system scripts and configurations to see which ones use use this file. On a default ubuntu/xenial64 vagrant box, the scripts and configurations that use this file are mostly in /etc/init.d/ /etc/pam.d/, and /etc/rc.*.d/.



        The following configurations are how variables in /etc/environment get set in my shell:



        /etc/pam.d/login
        /etc/pam.d/su
        /etc/pam.d/sshd



        From man pam_env:




        The pam_env PAM module allows the (un)setting of environment variables.
        ...



        This module can also parse a file with simple KEY=VAL pairs on separate lines (/etc/environment by default). You can change the default file to parse, with the envfile flag and turn it on or off by setting the readenv flag to 1 or 0 respectively.
        ...




        Do a similar search on your docker container. You can check if your container uses pam_env.so.



        Most likely the best solution is to have your start up process create environment variables from /etc/environment but that advice is given without understanding what you are building. The uses in `/etc/rc*.d/ might be good examples for how to accomplish this.



        Most people follow @ben-njeri's advice and set variables in the default configuration files for the bash shell.






        share|improve this answer























          up vote
          1
          down vote










          up vote
          1
          down vote









          Because UNIX tools are built with transparency in mind, you can find the answer with the help of grep. It doesn't matter if you are working with a full OS or a container (the later just means it you might have to take some extra steps to install tools you need for things to become transparent).



          Check that you have grep installed on your OS and run sudo grep -R "/etc/environment" /etc/*. This will search all the system scripts and configurations to see which ones use use this file. On a default ubuntu/xenial64 vagrant box, the scripts and configurations that use this file are mostly in /etc/init.d/ /etc/pam.d/, and /etc/rc.*.d/.



          The following configurations are how variables in /etc/environment get set in my shell:



          /etc/pam.d/login
          /etc/pam.d/su
          /etc/pam.d/sshd



          From man pam_env:




          The pam_env PAM module allows the (un)setting of environment variables.
          ...



          This module can also parse a file with simple KEY=VAL pairs on separate lines (/etc/environment by default). You can change the default file to parse, with the envfile flag and turn it on or off by setting the readenv flag to 1 or 0 respectively.
          ...




          Do a similar search on your docker container. You can check if your container uses pam_env.so.



          Most likely the best solution is to have your start up process create environment variables from /etc/environment but that advice is given without understanding what you are building. The uses in `/etc/rc*.d/ might be good examples for how to accomplish this.



          Most people follow @ben-njeri's advice and set variables in the default configuration files for the bash shell.






          share|improve this answer












          Because UNIX tools are built with transparency in mind, you can find the answer with the help of grep. It doesn't matter if you are working with a full OS or a container (the later just means it you might have to take some extra steps to install tools you need for things to become transparent).



          Check that you have grep installed on your OS and run sudo grep -R "/etc/environment" /etc/*. This will search all the system scripts and configurations to see which ones use use this file. On a default ubuntu/xenial64 vagrant box, the scripts and configurations that use this file are mostly in /etc/init.d/ /etc/pam.d/, and /etc/rc.*.d/.



          The following configurations are how variables in /etc/environment get set in my shell:



          /etc/pam.d/login
          /etc/pam.d/su
          /etc/pam.d/sshd



          From man pam_env:




          The pam_env PAM module allows the (un)setting of environment variables.
          ...



          This module can also parse a file with simple KEY=VAL pairs on separate lines (/etc/environment by default). You can change the default file to parse, with the envfile flag and turn it on or off by setting the readenv flag to 1 or 0 respectively.
          ...




          Do a similar search on your docker container. You can check if your container uses pam_env.so.



          Most likely the best solution is to have your start up process create environment variables from /etc/environment but that advice is given without understanding what you are building. The uses in `/etc/rc*.d/ might be good examples for how to accomplish this.



          Most people follow @ben-njeri's advice and set variables in the default configuration files for the bash shell.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 18 at 20:58









          Raúl Cuza

          413




          413
























              up vote
              0
              down vote













              Configure /etc/profile or ~/.bashrc or ~/.bash_profile files to export the variables whenever a new shell is started.



              /etc/profile is for system-wide and others are for specific users.



              Just add the lines like below at the end:



              export http_proxy=”http://myproxy.net:12345”
              export ftp_proxy=”http://myproxy.net:12345”
              export https_proxy=”http://myproxy.net:12345"


              So each time you start a shell, the variables are loaded and you can use them.






              share|improve this answer

























                up vote
                0
                down vote













                Configure /etc/profile or ~/.bashrc or ~/.bash_profile files to export the variables whenever a new shell is started.



                /etc/profile is for system-wide and others are for specific users.



                Just add the lines like below at the end:



                export http_proxy=”http://myproxy.net:12345”
                export ftp_proxy=”http://myproxy.net:12345”
                export https_proxy=”http://myproxy.net:12345"


                So each time you start a shell, the variables are loaded and you can use them.






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Configure /etc/profile or ~/.bashrc or ~/.bash_profile files to export the variables whenever a new shell is started.



                  /etc/profile is for system-wide and others are for specific users.



                  Just add the lines like below at the end:



                  export http_proxy=”http://myproxy.net:12345”
                  export ftp_proxy=”http://myproxy.net:12345”
                  export https_proxy=”http://myproxy.net:12345"


                  So each time you start a shell, the variables are loaded and you can use them.






                  share|improve this answer












                  Configure /etc/profile or ~/.bashrc or ~/.bash_profile files to export the variables whenever a new shell is started.



                  /etc/profile is for system-wide and others are for specific users.



                  Just add the lines like below at the end:



                  export http_proxy=”http://myproxy.net:12345”
                  export ftp_proxy=”http://myproxy.net:12345”
                  export https_proxy=”http://myproxy.net:12345"


                  So each time you start a shell, the variables are loaded and you can use them.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 1 at 12:04









                  Ben Njeri

                  512




                  512






















                      up vote
                      0
                      down vote













                      I have (had) this problem on Ubuntu 18.04. I couldn't get /etc/environment to work at all, but used a script in /etc/profile.d/ instead (as documented here), and that did work.



                      For more info, see my answer to this related question. Hope it helps :)






                      share|improve this answer










                      New contributor




                      bszom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.














                      • 2




                        While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
                        – Dave M
                        Nov 12 at 13:20










                      • @DaveM Please note that the essential part of the answer was included here, and that I'm linking to a StackExchange partner site. I've tried to make the answer a little more clear in terms of what worked, that the links are for more information, and added another link (heh).
                        – bszom
                        Nov 13 at 12:38















                      up vote
                      0
                      down vote













                      I have (had) this problem on Ubuntu 18.04. I couldn't get /etc/environment to work at all, but used a script in /etc/profile.d/ instead (as documented here), and that did work.



                      For more info, see my answer to this related question. Hope it helps :)






                      share|improve this answer










                      New contributor




                      bszom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.














                      • 2




                        While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
                        – Dave M
                        Nov 12 at 13:20










                      • @DaveM Please note that the essential part of the answer was included here, and that I'm linking to a StackExchange partner site. I've tried to make the answer a little more clear in terms of what worked, that the links are for more information, and added another link (heh).
                        – bszom
                        Nov 13 at 12:38













                      up vote
                      0
                      down vote










                      up vote
                      0
                      down vote









                      I have (had) this problem on Ubuntu 18.04. I couldn't get /etc/environment to work at all, but used a script in /etc/profile.d/ instead (as documented here), and that did work.



                      For more info, see my answer to this related question. Hope it helps :)






                      share|improve this answer










                      New contributor




                      bszom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.









                      I have (had) this problem on Ubuntu 18.04. I couldn't get /etc/environment to work at all, but used a script in /etc/profile.d/ instead (as documented here), and that did work.



                      For more info, see my answer to this related question. Hope it helps :)







                      share|improve this answer










                      New contributor




                      bszom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.









                      share|improve this answer



                      share|improve this answer








                      edited Nov 13 at 12:39





















                      New contributor




                      bszom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.









                      answered Nov 12 at 12:10









                      bszom

                      1012




                      1012




                      New contributor




                      bszom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.





                      New contributor





                      bszom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.






                      bszom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.








                      • 2




                        While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
                        – Dave M
                        Nov 12 at 13:20










                      • @DaveM Please note that the essential part of the answer was included here, and that I'm linking to a StackExchange partner site. I've tried to make the answer a little more clear in terms of what worked, that the links are for more information, and added another link (heh).
                        – bszom
                        Nov 13 at 12:38














                      • 2




                        While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
                        – Dave M
                        Nov 12 at 13:20










                      • @DaveM Please note that the essential part of the answer was included here, and that I'm linking to a StackExchange partner site. I've tried to make the answer a little more clear in terms of what worked, that the links are for more information, and added another link (heh).
                        – bszom
                        Nov 13 at 12:38








                      2




                      2




                      While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
                      – Dave M
                      Nov 12 at 13:20




                      While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
                      – Dave M
                      Nov 12 at 13:20












                      @DaveM Please note that the essential part of the answer was included here, and that I'm linking to a StackExchange partner site. I've tried to make the answer a little more clear in terms of what worked, that the links are for more information, and added another link (heh).
                      – bszom
                      Nov 13 at 12:38




                      @DaveM Please note that the essential part of the answer was included here, and that I'm linking to a StackExchange partner site. I've tried to make the answer a little more clear in terms of what worked, that the links are for more information, and added another link (heh).
                      – bszom
                      Nov 13 at 12:38


















                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1308298%2fsetting-variable-in-etc-environment-has-no-effect%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How do I know what Microsoft account the skydrive app is syncing to?

                      When does type information flow backwards in C++?

                      Grease: Live!