<?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: 11iv3 PATH not getting setup from /etc/profile in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666296#M496892</link>
    <description>&lt;P&gt;What shell you are using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you set PATH in your own profile, don't forget to include $PATH too.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Nov 2014 08:27:16 GMT</pubDate>
    <dc:creator>Torsten.</dc:creator>
    <dc:date>2014-11-07T08:27:16Z</dc:date>
    <item>
      <title>11iv3 PATH not getting setup from /etc/PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666236#M496891</link>
      <description>&lt;P&gt;Hi in 11iv3&amp;nbsp;PATH not getting setup from /etc/PATH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Whem am running env for 1 user am not able to see /etc/PATH contents :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ env|grep -i pat&lt;BR /&gt;PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/ssh/bin:.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whereas my /etc/PATH contains ;&lt;/P&gt;
&lt;P&gt;root #/var/tmp &amp;gt;cat /etc/PATH&lt;BR /&gt;/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/gvsd/bin:/opt/ipf/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/sas/bin:/opt/wli/bin:/opt/graphics/common/bin:/opt/hpvm/bin:/opt/atok/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/sec_mgmt/bastille/bin:/opt/caliper/bin:/opt/drd/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/resmon/bin:/opt/firefox:/opt/perf/bin:/usr/contrib/kwdb/bin:/opt/perl_32/bin:/opt/perl_64/bin:/opt/prm/bin:/opt/propplus/bin:/opt/sfm/bin:/etc/cmcluster/scripts/tkit/vtn:/opt/swm/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/swa/bin:/opt/hpsmh/bin:/opt/thunderbird:/opt/sentinel/bin:/opt/langtools/bin:/opt/wlm/bin:/opt/gwlm/bin:/opt/cfg2html:/home/scripts:/usr/local/bin:/opt/gnome/bin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This thread has been moved from HP-UX&amp;gt;System Administration to &amp;nbsp;HP-UX &amp;gt; languages. -HP Forum Moderator&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 04:19:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666236#M496891</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2014-11-10T04:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: 11iv3 PATH not getting setup from /etc/profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666296#M496892</link>
      <description>&lt;P&gt;What shell you are using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you set PATH in your own profile, don't forget to include $PATH too.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2014 08:27:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666296#M496892</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2014-11-07T08:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: 11iv3 PATH not getting setup from /etc/profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666300#M496893</link>
      <description>&lt;P&gt;Hi Team ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find .profile of 1 user below ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;root #/etc &amp;gt;su - tejachau&lt;BR /&gt;$ cat .profile&lt;/P&gt;&lt;P&gt;# @(#)B.11.31_LR&lt;/P&gt;&lt;P&gt;# Default user .profile file (/usr/bin/sh initialization).&lt;/P&gt;&lt;P&gt;# Set up the terminal:&lt;BR /&gt;if [ "$TERM" = "" ]&lt;BR /&gt;then&lt;BR /&gt;eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt;else&lt;BR /&gt;eval ` tset -s -Q `&lt;BR /&gt;fi&lt;BR /&gt;stty erase "^H" kill "^U" intr "^C" eof "^D"&lt;BR /&gt;stty hupcl ixon ixoff&lt;BR /&gt;tabs&lt;/P&gt;&lt;P&gt;# NOTE: '.' is added to $PATH for compatibility reasons only. This&lt;BR /&gt;# default will be changed in a future release. If "." is not&lt;BR /&gt;# needed for compatibility it is better to omit this line.&lt;BR /&gt;# Please edit .profile according to your site requirements.&lt;/P&gt;&lt;P&gt;# Set up the search paths:&lt;BR /&gt;PATH=$PATH:.&lt;/P&gt;&lt;P&gt;# Set up the shell environment:&lt;BR /&gt;set -u&lt;BR /&gt;trap "echo 'logout'" 0&lt;/P&gt;&lt;P&gt;# Set up the shell variables:&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;export EDITOR&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2014 08:33:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666300#M496893</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2014-11-07T08:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: 11iv3 PATH not getting setup from /etc/profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666378#M496894</link>
      <description>&lt;P&gt;question remains: what shell is in use? bash by chance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# sh&lt;/P&gt;&lt;P&gt;# echo $PATH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any difference?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2014 11:00:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666378#M496894</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2014-11-07T11:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: 11iv3 PATH not getting setup from /etc/profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666388#M496895</link>
      <description>&lt;P&gt;$ sh&lt;BR /&gt;$ echo $SHELL&lt;BR /&gt;/sbin/sh&lt;BR /&gt;$ echo $PATH&lt;BR /&gt;/usr/bin:.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2014 11:26:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666388#M496895</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2014-11-07T11:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: 11iv3 PATH not getting setup from /etc/profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666522#M496896</link>
      <description>&lt;P&gt;Could you please check what is the default shell for this user?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2014 15:53:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666522#M496896</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2014-11-07T15:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: 11.31 PATH not getting setup from /etc/PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666784#M496897</link>
      <description>&lt;P&gt;This only works if /etc/profile and ~/.profile work together and haven't been modified too much.&amp;nbsp; :-)&lt;/P&gt;&lt;P&gt;My old ~/.profile actually reads /etc/PATH.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should also work for the scummy C shell through csh.login.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Nov 2014 03:59:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666784#M496897</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-11-08T03:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: 11iv3 PATH not getting setup from /etc/profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666860#M496898</link>
      <description>&lt;P&gt;The 'standard' way to set the &lt;STRONG&gt;PATH&lt;/STRONG&gt; variable is in &lt;STRONG&gt;/etc/profile&lt;/STRONG&gt;, followed by possible additions or changes in your login profile (&lt;STRONG&gt;.profile&lt;/STRONG&gt;). Are you really using&lt;STRONG&gt; /usr/bin/sh&lt;/STRONG&gt;? It would be more useful to type &lt;STRONG&gt;ps -f&lt;/STRONG&gt; (not &lt;STRONG&gt;ps -ef&lt;/STRONG&gt;) to see your currently running shell. If you login with &lt;STRONG&gt;sh&lt;/STRONG&gt; and then run &lt;STRONG&gt;ksh&lt;/STRONG&gt; or some other shell, the &lt;STRONG&gt;PATH&lt;/STRONG&gt; variable may be getting reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the &lt;STRONG&gt;PATH&lt;/STRONG&gt; setting in&lt;STRONG&gt; /etc/profile&lt;/STRONG&gt; and &lt;STRONG&gt;.profile&lt;/STRONG&gt; can be destroyed with one command like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PATH=/usr/bin&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which has occured somewhere &lt;SPAN&gt;before&lt;/SPAN&gt; your &lt;STRONG&gt;.profile&lt;/STRONG&gt; starts, which states:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PATH=$PATH:.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most likely, /etc/profile has an added line at the bottom that looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;PATH=/usr/bin&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Start by locating all the &lt;STRONG&gt;PATH&lt;/STRONG&gt; words in your &lt;STRONG&gt;/etc/profile&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;grep PATH /etc/profile&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you see something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PATH=$(cat /etc/PATH)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then the complete value for&lt;STRONG&gt; /etc/PATH&lt;/STRONG&gt; is being set there.&lt;/P&gt;&lt;P&gt;But if you see another &lt;STRONG&gt;PATH=something&lt;/STRONG&gt; that does NOT incude &lt;STRONG&gt;$PATH&lt;/STRONG&gt;, then the old value is being completely replaced.&lt;/P&gt;&lt;P&gt;NOTE: There may be a 'sourced' script in&lt;STRONG&gt; /etc/profile&lt;/STRONG&gt; that is doing this. Look for a line that starts with a period like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;. /someplace/somescript&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That may be the culprit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Nov 2014 17:40:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666860#M496898</guid>
      <dc:creator>pooderbill</dc:creator>
      <dc:date>2014-11-08T17:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: 11.31 PATH not getting setup from /etc/profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666890#M496899</link>
      <description>&lt;P&gt;&amp;gt;If you see something like this:&amp;nbsp; &lt;STRONG&gt;PATH=$(cat /etc/PATH)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or more efficiently without that evil cat: PATH=$(&amp;lt; /etc/PATH)&lt;/P&gt;&lt;P&gt;But the ones I see use the deprecated ``:&amp;nbsp; PATH=`cat /etc/PATH`&lt;/P&gt;</description>
      <pubDate>Sat, 08 Nov 2014 20:08:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6666890#M496899</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-11-08T20:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: 11.31 PATH not getting setup from /etc/profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6667766#M496900</link>
      <description>&lt;P&gt;root #/ &amp;gt;grep "PATH" /etc/profile&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Modify the variables through /etc/PATH and /etc/MANPATH&lt;BR /&gt;PATH=/usr/local/bin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin&lt;BR /&gt;MANPATH=/usr/share/man:/usr/contrib/man:/usr/local/man&lt;BR /&gt;# Insure PATH contains either /usr/bin or /sbin (if /usr/bin is not available).&lt;BR /&gt;PATH=$PATH:/sbin&lt;BR /&gt;else if [ -r /etc/PATH ]&lt;BR /&gt;# Insure that $PATH includes /usr/bin . If /usr/bin is&lt;BR /&gt;# present in /etc/PATH then $PATH is set to the contents&lt;BR /&gt;# of /etc/PATH. Otherwise, add the contents of /etc/PATH&lt;BR /&gt;# to the end of the default $PATH definition above.&lt;BR /&gt;-e ":/usr/bin$" /etc/PATH&lt;BR /&gt;PATH=`cat /etc/PATH`&lt;BR /&gt;PATH=$PATH:`cat /etc/PATH`&lt;BR /&gt;export PATH&lt;BR /&gt;# Set MANPATH to the contents of /etc/MANPATH, if it exists.&lt;BR /&gt;if [ -r /etc/MANPATH ]&lt;BR /&gt;MANPATH=`cat /etc/MANPATH`&lt;BR /&gt;export MANPATH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Guys can i replace /etc/profile online ?&lt;/P&gt;&lt;P&gt;could be a corrupt one ?&lt;/P&gt;&lt;P&gt;One of my junior was trying to install mysql i this host , that also needs to be checked since it has a depot file which uses /etc/profile for its installation .&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 10:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6667766#M496900</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2014-11-10T10:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: 11.31 PATH not getting setup from /etc/profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6667816#M496901</link>
      <description>&lt;P&gt;Hi guys ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It turned out to be permissions issue of /etc/profile , it was 640.&lt;/P&gt;&lt;P&gt;I modified it to 444 , its fine now &amp;nbsp;;-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 10:49:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6667816#M496901</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2014-11-10T10:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: 11.31 PATH not getting setup from /etc/profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6667892#M496902</link>
      <description>&lt;P&gt;Please revert your modifications like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PATH=$PATH:`cat /etc/PATH`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;otherwise you will see each entry twice.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 13:11:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6667892#M496902</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2014-11-10T13:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: 11.31 PATH not getting setup from /etc/profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6668124#M496903</link>
      <description>&lt;P&gt;&amp;gt;Please revert your modifications like: PATH=$PATH:`cat /etc/PATH`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This isn't a modification, there is an if-then-else to read from /etc/PATH.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:28:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6668124#M496903</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-11-10T17:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: 11.31 PATH not getting setup from /etc/profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6668204#M496904</link>
      <description>&lt;P&gt;You are right as always Dennis ...&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:24:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11iv3-path-not-getting-setup-from-etc-path/m-p/6668204#M496904</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2014-11-10T18:24:35Z</dc:date>
    </item>
  </channel>
</rss>

