<?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: silly question about &amp;quot;which&amp;quot; in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893532#M103491</link>
    <description>If "ls -latr /it" says that . and .. are not found, then it looks like the filesystem is corrupt. As you wrote earlier that rebuilding the (which?) filesystem solved the problem (whatever "this problem" was), it looks like you have frequent filesystem corruption, which should be looked into.</description>
    <pubDate>Mon, 03 Feb 2003 09:31:47 GMT</pubDate>
    <dc:creator>Frank Slootweg</dc:creator>
    <dc:date>2003-02-03T09:31:47Z</dc:date>
    <item>
      <title>silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893515#M103474</link>
      <description />
      <pubDate>Thu, 30 Jan 2003 23:28:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893515#M103474</guid>
      <dc:creator>hpuxhelp</dc:creator>
      <dc:date>2003-01-30T23:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893516#M103475</link>
      <description>When I login as root, I was able to issue "which" command..&lt;BR /&gt;if I su to a user "a"&lt;BR /&gt;, I got this error message &lt;BR /&gt;cannot open ..&lt;BR /&gt;...even if i am in the directory to find the file,&lt;BR /&gt;which command won't work... &lt;BR /&gt;why ?? can some1 help</description>
      <pubDate>Thu, 30 Jan 2003 23:30:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893516#M103475</guid>
      <dc:creator>hpuxhelp</dc:creator>
      <dc:date>2003-01-30T23:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893517#M103476</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Do you have correct permissions on /usr/bin/which file?.&lt;BR /&gt;&lt;BR /&gt;-r-xr-xr-x   1 bin        bin            661 Nov  7  1997 /usr/bin/which&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 30 Jan 2003 23:33:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893517#M103476</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-01-30T23:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893518#M103477</link>
      <description>And also on the file that you are trying "which" on. You should have atleast  read permission on the file that you are trying to find.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 30 Jan 2003 23:35:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893518#M103477</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-01-30T23:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893519#M103478</link>
      <description>yes..it does have permission...on all the file</description>
      <pubDate>Thu, 30 Jan 2003 23:53:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893519#M103478</guid>
      <dc:creator>hpuxhelp</dc:creator>
      <dc:date>2003-01-30T23:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893520#M103479</link>
      <description>and it still give the same error message</description>
      <pubDate>Thu, 30 Jan 2003 23:58:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893520#M103479</guid>
      <dc:creator>hpuxhelp</dc:creator>
      <dc:date>2003-01-30T23:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893521#M103480</link>
      <description>Is it possible that when you "su a", that your current directory is a directory not readable by a?&lt;BR /&gt;&lt;BR /&gt;Since which noses around different folders looking for your request and "." is searched too. Then you could get that error message if you didn't have access.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jan 2003 23:59:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893521#M103480</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2003-01-30T23:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893522#M103481</link>
      <description>To check for path issues, try &lt;BR /&gt;&lt;BR /&gt;whereis which&lt;BR /&gt;&lt;BR /&gt;If paths are correctly set up for user 'a', 'whereis' should be able to find 'which'.&lt;BR /&gt;&lt;BR /&gt;Aside from the fact that you are having an actual problem, I can't help being amused at having a discussion about which, whereis, why it doesn't work, what caused it, etc.  Sorry, warped mind, probably computer-related.&lt;BR /&gt;&lt;BR /&gt;Good Luck!  --bmr</description>
      <pubDate>Fri, 31 Jan 2003 00:09:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893522#M103481</guid>
      <dc:creator>Brian M Rawlings</dc:creator>
      <dc:date>2003-01-31T00:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893523#M103482</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;user1&amp;gt; which /usr/bin/junk &lt;BR /&gt;/usr/bin/junk not found &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This simply means you are not able to access the file or the file is not there. How about simple "ll" on the file?.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 31 Jan 2003 00:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893523#M103482</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-01-31T00:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893524#M103483</link>
      <description>You will get the message "cannot open" if you do "su - a" and the user does not have read permission to the directory that you were in prior to running the "su" command.</description>
      <pubDate>Fri, 31 Jan 2003 00:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893524#M103483</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-01-31T00:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893525#M103484</link>
      <description>It says "cannot open .." because it can not open ..&lt;BR /&gt;&lt;BR /&gt;I think the "su - a" has nothing to do with it, but just with the fact that you are not root.&lt;BR /&gt;&lt;BR /&gt;A small example:&lt;BR /&gt;&lt;BR /&gt;$ ll -d .&lt;BR /&gt;drwxr-xr-x  15 franks     ftp_group    17408 Jan 31 14:16 .&lt;BR /&gt;$ cd temp&lt;BR /&gt;$ which ksh&lt;BR /&gt;/usr/bin/ksh&lt;BR /&gt;$ chmod 000 ..&lt;BR /&gt;$ ll -d ..&lt;BR /&gt;d---------  15 franks     ftp_group    17408 Jan 31 14:16 ..&lt;BR /&gt;$ which ksh&lt;BR /&gt;cannot open ..&lt;BR /&gt;$ chmod 500 ..&lt;BR /&gt;$ ll -d ..&lt;BR /&gt;dr-x------  15 franks     ftp_group    17408 Jan 31 14:16 ..&lt;BR /&gt;$ which ksh&lt;BR /&gt;/usr/bin/ksh&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;So which(1) needs read (r) and execute (x) permission on the parent (..) directory.</description>
      <pubDate>Fri, 31 Jan 2003 14:27:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893525#M103484</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2003-01-31T14:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893526#M103485</link>
      <description>1) No question is silly&lt;BR /&gt;&lt;BR /&gt;Basic UX issue, though Linux seems to have gotten around it.&lt;BR /&gt;&lt;BR /&gt;In order to browse the contents of a directory, it must have execute permissions. It's always seemed counter intuitive to me.&lt;BR /&gt;&lt;BR /&gt;As you tighten security, you may find the which command is less useful.&lt;BR /&gt;&lt;BR /&gt;You can always cd to the directory of the program and which ./progname&lt;BR /&gt;&lt;BR /&gt;It does limit functionality though.&lt;BR /&gt;&lt;BR /&gt;P</description>
      <pubDate>Fri, 31 Jan 2003 15:04:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893526#M103485</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-01-31T15:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893527#M103486</link>
      <description>when create a directory, say &lt;BR /&gt;/it , when do ll -d , if the .. (parent directory) wasn't there, what might be the cause &lt;BR /&gt;for this? Perhaps permission has changed???</description>
      <pubDate>Fri, 31 Jan 2003 16:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893527#M103486</guid>
      <dc:creator>hpuxhelp</dc:creator>
      <dc:date>2003-01-31T16:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893528#M103487</link>
      <description>&amp;gt; when create a directory, say /it , when do ll -d , if&lt;BR /&gt;&amp;gt; the .. (parent directory) wasn't there, what might be &lt;BR /&gt;&amp;gt; the cause for this? Perhaps permission has changed??? &lt;BR /&gt;&lt;BR /&gt;Please be careful when spelling commands. Preferably put them on seperate lines.&lt;BR /&gt;&lt;BR /&gt;To answer your question. If you do&lt;BR /&gt;&lt;BR /&gt;mkdir /it&lt;BR /&gt;&lt;BR /&gt;and then do&lt;BR /&gt;&lt;BR /&gt;ll -d&lt;BR /&gt;&lt;BR /&gt;then the ll(1) command will only list the current directory (.), not the parent directory (..), so what (I think) you are seeing, is normal.&lt;BR /&gt;&lt;BR /&gt;If you want to see the parent directory (..) in the listing, then you can for example use&lt;BR /&gt;&lt;BR /&gt;ll -a</description>
      <pubDate>Fri, 31 Jan 2003 17:01:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893528#M103487</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2003-01-31T17:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893529#M103488</link>
      <description>Hi Frank,&lt;BR /&gt;base on your sample, i am still unable to create the error message....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;p.s this problem was solved by &lt;BR /&gt;some1 rebuild the f/s and mount them back again...however, i don't think there is the problem with logical volume...&lt;BR /&gt;&lt;BR /&gt;I am still very intersted on creating this problem again....</description>
      <pubDate>Fri, 31 Jan 2003 17:16:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893529#M103488</guid>
      <dc:creator>hpuxhelp</dc:creator>
      <dc:date>2003-01-31T17:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893530#M103489</link>
      <description>when i do ls -latr /it,&lt;BR /&gt;it indicates ./.. not found&lt;BR /&gt;it seems like the parent directory is missiong...how can this be possible?&lt;BR /&gt;bc we can't remove .. or . or can we?</description>
      <pubDate>Fri, 31 Jan 2003 17:43:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893530#M103489</guid>
      <dc:creator>hpuxhelp</dc:creator>
      <dc:date>2003-01-31T17:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893531#M103490</link>
      <description>Is the directory a mountpoint ?  If so,&lt;BR /&gt;unmount the fs, check the permissions of the&lt;BR /&gt;directory (should be 555, not 000), and remount the fs.  Worked for me once.</description>
      <pubDate>Mon, 03 Feb 2003 09:19:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893531#M103490</guid>
      <dc:creator>Systeemingenieurs Infoc</dc:creator>
      <dc:date>2003-02-03T09:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: silly question about "which"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893532#M103491</link>
      <description>If "ls -latr /it" says that . and .. are not found, then it looks like the filesystem is corrupt. As you wrote earlier that rebuilding the (which?) filesystem solved the problem (whatever "this problem" was), it looks like you have frequent filesystem corruption, which should be looked into.</description>
      <pubDate>Mon, 03 Feb 2003 09:31:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/silly-question-about-quot-which-quot/m-p/2893532#M103491</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2003-02-03T09:31:47Z</dc:date>
    </item>
  </channel>
</rss>

