<?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: HP-UX 11.31 - Unable to change directories in /cots/oracle and /var/opt/ in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6231103#M485462</link>
    <description>Hi Madhu!&lt;BR /&gt;Problem is only with oracle account and it is possible that their $HOME/.profile file has some bad commands in it causing the mess. Thanks</description>
    <pubDate>Wed, 09 Oct 2013 14:18:05 GMT</pubDate>
    <dc:creator>NavyYard</dc:creator>
    <dc:date>2013-10-09T14:18:05Z</dc:date>
    <item>
      <title>HP-UX 11.31 -- Unable to change directories in /cots/oracle and /var/opt/</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6214367#M485368</link>
      <description>&lt;P&gt;Hi folks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a blade server running hp-ux 11.31.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As root or oracle, When I try to cd to /cots/oracle it works, but if I do: cd /cots; and then cd oracle, it says "oracle"&amp;nbsp;file not found.&amp;nbsp; If I do "cd /cots/oracle", it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I encounter the same problem in other directories, such as /opt. It works all the time when I have fully qualified path for the directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing directory does not work if&amp;nbsp;I cd&amp;nbsp;down one directory at a time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/cots directory is mounted on the lun and /opt is on local internal disk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I do not see any errors in syslog.log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice will be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 00:34:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6214367#M485368</guid>
      <dc:creator>NavyYard</dc:creator>
      <dc:date>2013-09-24T00:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11.31 -- Unable to change directories in /cots/oracle and /var/opt/</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6214437#M485372</link>
      <description>&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;if you have already configured sudo then add one more line in /usr/local/etc/sudoers&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias CD = /usr/bin/cd&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Sep 2013 02:25:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6214437#M485372</guid>
      <dc:creator>Ajin_1</dc:creator>
      <dc:date>2013-09-24T02:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11.31 - Unable to change directories in /cots/oracle and /var/opt/</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6214709#M485373</link>
      <description>&lt;P&gt;&amp;gt;if I do: cd /cots and then cd oracle, it says "oracle"&amp;nbsp;file not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are the permissions of the two directories?&lt;/P&gt;&lt;P&gt;ll -d /cots /cots/oracle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you exported CDFILTER and to what value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 04:22:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6214709#M485373</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-09-24T04:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11.31 -- Unable to change directories in /cots/oracle and /var/opt/</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6215113#M485379</link>
      <description>Hi!&lt;BR /&gt;On /cots permissions are RWXRWXR-X and /app/oracle permissions are RWXRWXRWX</description>
      <pubDate>Tue, 24 Sep 2013 12:11:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6215113#M485379</guid>
      <dc:creator>NavyYard</dc:creator>
      <dc:date>2013-09-24T12:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11.31 - Unable to change directories in /cots/oracle and /var/opt/</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6215499#M485382</link>
      <description>&lt;P&gt;Do you have some strange alias for the 'cd' command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do the following commands show:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# alias cd&lt;/P&gt;&lt;P&gt;# whence -v cd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# ls -l /usr/bin/cd&lt;/P&gt;&lt;P&gt;# what /usr/bin/cd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What happens if you do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# /usr/bin/cd /cots&lt;/P&gt;&lt;P&gt;# /usr/bin/cd oracle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 16:12:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6215499#M485382</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2013-09-24T16:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11.31 - Unable to change directories in /cots/oracle and /var/opt/</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6215629#M485383</link>
      <description>&lt;P&gt;&amp;gt;On /cots permissions are RWXRWXR-X and /app/oracle permissions are RWXRWXRWX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is one /cots and the other /app?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If these are mount points, what is the permission when the filesystem is unmounted?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;What happens if you do the following:&lt;/P&gt;&lt;P&gt;&amp;gt;# /usr/bin/cd /cots&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will do no good to use /usr/bin/cd since that won't change the directory for the shell.&amp;nbsp; You must use the shell builtin.&lt;/P&gt;&lt;P&gt;The proper command for detecting obscuring aliases and functions is that whence you mentioned.&lt;/P&gt;&lt;P&gt;Or you could just quote it to prevent aliasing:&amp;nbsp; \cd /cots; \cd ./oracle&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 18:11:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6215629#M485383</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-09-24T18:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11.31 - Unable to change directories in /cots/oracle and /var/opt/</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6215705#M485384</link>
      <description>&lt;P&gt;The cd(1) man page says:&lt;/P&gt;&lt;P&gt;----------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;cd exists only as a shell built-in command because a new process is created whenever a command is executed, making cd useless if written and processed as a normal system command&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#FF0000"&gt;.&lt;/FONT&gt; Moreover, different shells provide different implementations of cd as a built-in utility. Features of cd as described here may not be supported by all the shells. Refer to individual shell manual entries for differences.&lt;/P&gt;&lt;P&gt;----------------&lt;/P&gt;&lt;P&gt;Emphasis mine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, HP-UX seems to include /usr/bin/cd... but at least on a 11.23 system I checked, it is just a shell script.&lt;/P&gt;&lt;P&gt;Yet I cannot immediately see any benefit with such a script: if /usr/bin/cd is executed, a new shell process will be started to run the script, and the script will run the shell built-in cd command to change its own current working directory. Then the script will end and the process will die, and the information about the changed working directory will vanish in a puff of logic along with the process. The working directory of the parent process will be unaffected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess there might be some special case in which /usr/bin/cd is actually useful. Restricted shells, perhaps?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 18:34:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6215705#M485384</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2013-09-24T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11.31 - Unable to change directories in /cots/oracle and /var/opt/</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6215713#M485385</link>
      <description>&lt;P&gt;&amp;gt;Emphasis mine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Didn't I just say it wouldn't work.&amp;nbsp; ;-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;it is just a shell script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, same as ulimit.&amp;nbsp; It's there but can't change anything, just display.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;I guess there might be some special case in which /usr/bin/cd is actually useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The POSIX standard requires it to be there.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 18:43:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6215713#M485385</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-09-24T18:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11.31 - Unable to change directories in /cots/oracle and /var/opt/</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6223431#M485405</link>
      <description>&lt;P&gt;Hi Matti/Dennis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure,but a guess could be problem with shell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it right to change&amp;nbsp; the shell for root and oracle user ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Navyyard --&amp;gt; Do this problem common for all user registered in the server&amp;nbsp; and to all directories ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Madhu&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2013 15:21:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6223431#M485405</guid>
      <dc:creator>madhucertify</dc:creator>
      <dc:date>2013-10-01T15:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11.31 - Unable to change directories in /cots/oracle and /var/opt/</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6223669#M485407</link>
      <description>&lt;P&gt;&amp;gt;a guess could be problem with shell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I doubt it.&amp;nbsp; But if you use tusc, you could see what system call failed.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2013 18:45:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6223669#M485407</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-10-01T18:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11.31 - Unable to change directories in /cots/oracle and /var/opt/</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6231103#M485462</link>
      <description>Hi Madhu!&lt;BR /&gt;Problem is only with oracle account and it is possible that their $HOME/.profile file has some bad commands in it causing the mess. Thanks</description>
      <pubDate>Wed, 09 Oct 2013 14:18:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-unable-to-change-directories-in-cots-oracle-and-var/m-p/6231103#M485462</guid>
      <dc:creator>NavyYard</dc:creator>
      <dc:date>2013-10-09T14:18:05Z</dc:date>
    </item>
  </channel>
</rss>

