<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to set environment variables for all users in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989990#M47386</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I need to set some paths for all users into my system. Is there any way to do this in suse linux 8?&lt;BR /&gt;&lt;BR /&gt;I notice there's /etc/PATH file in HP-UX systems, but I don't know if there's something similar in Linux systems.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Carles&lt;BR /&gt;</description>
    <pubDate>Tue, 11 Jul 2006 07:04:27 GMT</pubDate>
    <dc:creator>Carles Viaplana</dc:creator>
    <dc:date>2006-07-11T07:04:27Z</dc:date>
    <item>
      <title>How to set environment variables for all users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989990#M47386</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I need to set some paths for all users into my system. Is there any way to do this in suse linux 8?&lt;BR /&gt;&lt;BR /&gt;I notice there's /etc/PATH file in HP-UX systems, but I don't know if there's something similar in Linux systems.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Carles&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2006 07:04:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989990#M47386</guid>
      <dc:creator>Carles Viaplana</dc:creator>
      <dc:date>2006-07-11T07:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to set environment variables for all users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989991#M47387</link>
      <description>It depends on the shell they use.&lt;BR /&gt;If they use bash (default in redhat linux)&lt;BR /&gt;and all the accounts are local, then they all "source" the /etc/bashrc file (by default).&lt;BR /&gt;Thus appending variables to /etc/bashrc will influent all users.&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2006 07:20:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989991#M47387</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-07-11T07:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to set environment variables for all users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989992#M47388</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;all users are local and are using basch shell.&lt;BR /&gt;&lt;BR /&gt;In fact I need to add some paths to environment path variable and I have no idea where can I set it up.&lt;BR /&gt;&lt;BR /&gt;I tried to create profile.local as copy from /etc/profile and I added paths, but it seems system doesn't like this kind of modifications.&lt;BR /&gt;&lt;BR /&gt;Any idea?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Carles&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2006 07:31:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989992#M47388</guid>
      <dc:creator>Carles Viaplana</dc:creator>
      <dc:date>2006-07-11T07:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to set environment variables for all users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989993#M47389</link>
      <description>Let's say you want to add /tmp folder to a path:&lt;BR /&gt;edit the file /etc/bashrc&lt;BR /&gt;append to its end the line&lt;BR /&gt;export PATH=/tmp:$PATH&lt;BR /&gt;&lt;BR /&gt;save and exit&lt;BR /&gt;then as one of your users execute this command:&lt;BR /&gt;source /etc/bashrc or logout and login back.</description>
      <pubDate>Tue, 11 Jul 2006 07:38:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989993#M47389</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-07-11T07:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to set environment variables for all users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989994#M47390</link>
      <description>instead of copying /etc/profile to /etc/profile.local try to only add the necessary line to /etc/profile.local.&lt;BR /&gt;In particulat the lines from previous responce.&lt;BR /&gt;Hope it helps.</description>
      <pubDate>Tue, 11 Jul 2006 08:39:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989994#M47390</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-07-11T08:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to set environment variables for all users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989995#M47391</link>
      <description>The easiest way, IMHO, is add a shell script with your commands into /etc/profile.d directory.&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2006 09:16:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989995#M47391</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2006-07-11T09:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to set environment variables for all users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989996#M47392</link>
      <description>Finally I added just environment variables I need into profile.local instead to copy all.&lt;BR /&gt;&lt;BR /&gt;Thanks to all for your help.&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Carles&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2006 10:09:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-environment-variables-for-all-users/m-p/4989996#M47392</guid>
      <dc:creator>Carles Viaplana</dc:creator>
      <dc:date>2006-07-11T10:09:23Z</dc:date>
    </item>
  </channel>
</rss>

