<?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 Re: PATH variable on system startup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/path-variable-on-system-startup/m-p/3549096#M839713</link>
    <description>PATH is a fairly serious security risk and at best, undependable, especially for scripting. The very first line of code in all my scripts is:&lt;BR /&gt; &lt;BR /&gt;export PATH=/usr/bin&lt;BR /&gt; &lt;BR /&gt;Then as you code additional commands, you add to your local PATH, knowing that you are in control. Some software packages go a bit too far in appending directories to /etc/PATH and you end up with a huge PATH. You can adjust your PATH for your local shell, but for startup scripts and cron and batch jobs, never assume anything about the current PATH value--and you won't go wrong.</description>
    <pubDate>Fri, 20 May 2005 22:31:10 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2005-05-20T22:31:10Z</dc:date>
    <item>
      <title>PATH variable on system startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/path-variable-on-system-startup/m-p/3549092#M839709</link>
      <description>What controls the default PATH variable upon system startup (processing /sbin/rc?.d scripts)? Is it just /sbin/rc?&lt;BR /&gt;&lt;BR /&gt;I have an app trying to su but they have no path...obviously I told them to include the full path in the script, but then I got to wondering why the PATH wouldn't be broader to begin with.&lt;BR /&gt;&lt;BR /&gt;Usage: /sbin/rc3.d/S799patrol {start|stop} Output from "/sbin/rc3.d/S799patrol start":&lt;BR /&gt;/sbin/rc3.d/S799patrol[27]: su:  not found&lt;BR /&gt;/sbin/rc3.d/S799patrol[28]: su:  not found "/sbin/rc3.d/S799patrol start" FAILED&lt;BR /&gt;</description>
      <pubDate>Fri, 20 May 2005 16:54:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/path-variable-on-system-startup/m-p/3549092#M839709</guid>
      <dc:creator>C W_1</dc:creator>
      <dc:date>2005-05-20T16:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: PATH variable on system startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/path-variable-on-system-startup/m-p/3549093#M839710</link>
      <description>Default path is taken from /etc/PATH. It is btter to keep it as it is. You script should explicitely define it and use it. &lt;BR /&gt;Changes to /etc/PATH will be applied globally. So a user who does not need path like /xxxyyy, will also get it.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Fri, 20 May 2005 17:50:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/path-variable-on-system-startup/m-p/3549093#M839710</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-05-20T17:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: PATH variable on system startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/path-variable-on-system-startup/m-p/3549094#M839711</link>
      <description>It is quite odd that any user can have nothing in PATH variable upon loggin in. Unless of course someone has fatfingered and cleared out your /etc/PATH file or god forbit delete it :)&lt;BR /&gt;&lt;BR /&gt;If there is a /etc/PATH file on your system and it has some directories listed in it delimited by : (colon that is), make sure it has at least permission 444 (read for everyone). 644 or 744 is acceptable as long as the owner is root, but do not give more than read to group and others to protect it from getting fatfingered by unknowing people.</description>
      <pubDate>Fri, 20 May 2005 18:29:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/path-variable-on-system-startup/m-p/3549094#M839711</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-05-20T18:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: PATH variable on system startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/path-variable-on-system-startup/m-p/3549095#M839712</link>
      <description>Default PATH set in /sbin/rc is&lt;BR /&gt;&lt;BR /&gt;PATH=/sbin&lt;BR /&gt;export PATH&lt;BR /&gt;&lt;BR /&gt;Most of the processing scripts in /sbin/init.d (/sbin/rc?.d) have the following line at the beginning of the file.&lt;BR /&gt;&lt;BR /&gt;PATH=/usr/sbin:/usr/bin:/sbin&lt;BR /&gt;export PATH&lt;BR /&gt;&lt;BR /&gt;Make sure your startup script contains this file.</description>
      <pubDate>Fri, 20 May 2005 20:05:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/path-variable-on-system-startup/m-p/3549095#M839712</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-05-20T20:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: PATH variable on system startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/path-variable-on-system-startup/m-p/3549096#M839713</link>
      <description>PATH is a fairly serious security risk and at best, undependable, especially for scripting. The very first line of code in all my scripts is:&lt;BR /&gt; &lt;BR /&gt;export PATH=/usr/bin&lt;BR /&gt; &lt;BR /&gt;Then as you code additional commands, you add to your local PATH, knowing that you are in control. Some software packages go a bit too far in appending directories to /etc/PATH and you end up with a huge PATH. You can adjust your PATH for your local shell, but for startup scripts and cron and batch jobs, never assume anything about the current PATH value--and you won't go wrong.</description>
      <pubDate>Fri, 20 May 2005 22:31:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/path-variable-on-system-startup/m-p/3549096#M839713</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-05-20T22:31:10Z</dc:date>
    </item>
  </channel>
</rss>

