<?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: ls command gets unreadable error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010856#M426480</link>
    <description>The permission right of /opt is 755 now</description>
    <pubDate>Fri, 27 Oct 2006 05:28:44 GMT</pubDate>
    <dc:creator>Achilles_2</dc:creator>
    <dc:date>2006-10-27T05:28:44Z</dc:date>
    <item>
      <title>ls command gets unreadable error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010852#M426476</link>
      <description>Hi there,&lt;BR /&gt; &lt;BR /&gt;I have encountered an funny problem. The case is when I use "ls /opt" command with a normal user it returns "/opt unreadable", but if I use "ls /opt/dce" by the same user the output is correct. Also if I use "ls /opt" by root the output is correct. This sitution also exists in some command which shows as below. I check the /opt is existing, how come "ls" not worked properly?&lt;BR /&gt;&lt;BR /&gt;user1@server: /opt # echo *&lt;BR /&gt;*&lt;BR /&gt;user1@server: /home/user1 # ls /opt&lt;BR /&gt;/opt unreadable&lt;BR /&gt;user1@server: /home/user1 # cd /opt&lt;BR /&gt;user1@server: /opt # ls -rlt&lt;BR /&gt;. unreadable&lt;BR /&gt;total 16&lt;BR /&gt;user1@server: /home/user1 # cd /opt/dce&lt;BR /&gt;user1@server: /opt/dce # ls&lt;BR /&gt;bin        dcecp      examples   include    lbin       lib        newconfig  sbin       share      tcl&lt;BR /&gt;user1@server: /opt # pwd&lt;BR /&gt;ksh: pwd: permission denied&lt;BR /&gt;user1@server: /opt # ls&lt;BR /&gt;. unreadable&lt;BR /&gt;user1@server: /opt # ls /opt&lt;BR /&gt;/opt unreadable&lt;BR /&gt;user1@server: /opt # pwd&lt;BR /&gt;ksh: pwd: permission denied&lt;BR /&gt;user1@server: /opt # cd&lt;BR /&gt;user1@server: /home/user1 # ls /opt&lt;BR /&gt;/opt unreadable&lt;BR /&gt;user1@server: /home/user1 # bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3     204800  178904   25752   87% /&lt;BR /&gt;/dev/vg00/lvol1     311296   99584  210112   32% /stand&lt;BR /&gt;/dev/vg00/lvol8    2613248 1466704 1137688   56% /var&lt;BR /&gt;/dev/vg00/lvol7    2457600 2352904  104128   96% /usr&lt;BR /&gt;/dev/vg00/lvol4     204800   20208  183216   10% /tmp&lt;BR /&gt;/dev/vg00/lvol6    7340032 3825632 3488736   52% /opt&lt;BR /&gt;/dev/vg00/lvol5    2048000 1065152  980936   52% /home&lt;BR /&gt;user1@server: /home/user1 # uname -a&lt;BR /&gt;HP-UX server B.11.23 U ia64 0253301370 unlimited-user license&lt;BR /&gt;user1@server: /home/user1 # uname&lt;BR /&gt;HP-UX&lt;BR /&gt;user1@server: /home/user1 # pwd&lt;BR /&gt;/home/user1&lt;BR /&gt;user1@server: /home/user1 # cd /opt&lt;BR /&gt;user1@server: /opt # pwd&lt;BR /&gt;ksh: pwd: permission denied&lt;BR /&gt; &lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Fri, 27 Oct 2006 05:10:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010852#M426476</guid>
      <dc:creator>Achilles_2</dc:creator>
      <dc:date>2006-10-27T05:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: ls command gets unreadable error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010853#M426477</link>
      <description>Check permitions on /opt . &lt;BR /&gt;&lt;BR /&gt;dr-xr-xr-x  46 bin        bin           1024 Aug 17 18:12 opt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Fri, 27 Oct 2006 05:17:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010853#M426477</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2006-10-27T05:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: ls command gets unreadable error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010854#M426478</link>
      <description>Hi,&lt;BR /&gt;you probably have permission 711 rather than 755 on /opt.&lt;BR /&gt;ll / | grep opt&lt;BR /&gt;&lt;BR /&gt;Change with:&lt;BR /&gt;chmod 755 /opt&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Oct 2006 05:21:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010854#M426478</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-27T05:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: ls command gets unreadable error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010855#M426479</link>
      <description>Thanks for your suggestion, the permissions in the directory are correct. &lt;BR /&gt;i'm sure there are files in the the directory root read every file &lt;BR /&gt;&lt;BR /&gt;Besides I use /usr/bin/ls and /sbin/ls, the output gets ". reachable"! It is the same output as "ls". &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Oct 2006 05:26:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010855#M426479</guid>
      <dc:creator>Achilles_2</dc:creator>
      <dc:date>2006-10-27T05:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: ls command gets unreadable error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010856#M426480</link>
      <description>The permission right of /opt is 755 now</description>
      <pubDate>Fri, 27 Oct 2006 05:28:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010856#M426480</guid>
      <dc:creator>Achilles_2</dc:creator>
      <dc:date>2006-10-27T05:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: ls command gets unreadable error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010857#M426481</link>
      <description>What is the permission for /? Did someone withg root privileges set an ACL?&lt;BR /&gt; &lt;BR /&gt;ll -d / /opt&lt;BR /&gt;getacl / /opt</description>
      <pubDate>Fri, 27 Oct 2006 06:20:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010857#M426481</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-10-27T06:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: ls command gets unreadable error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010858#M426482</link>
      <description>Here is the output:&lt;BR /&gt;&lt;BR /&gt;user1@server:/ # ll -d / /opt&lt;BR /&gt;drwxr-xr-x  19 root       root          8192 Oct 27 19:35 //&lt;BR /&gt;dr-x--x--x  53 bin        bin           8192 Aug  8  2005 /opt/&lt;BR /&gt;&lt;BR /&gt;user1@server:/ # getacl / /opt&lt;BR /&gt;# file: /&lt;BR /&gt;# owner: root&lt;BR /&gt;# group: root&lt;BR /&gt;user::rwx&lt;BR /&gt;group::r-x&lt;BR /&gt;class:r-x&lt;BR /&gt;other:r-x&lt;BR /&gt;&lt;BR /&gt;# file: /opt&lt;BR /&gt;# owner: bin&lt;BR /&gt;# group: bin&lt;BR /&gt;user::r-x&lt;BR /&gt;group::--x&lt;BR /&gt;class:--x&lt;BR /&gt;other:--x</description>
      <pubDate>Fri, 27 Oct 2006 07:15:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010858#M426482</guid>
      <dc:creator>Achilles_2</dc:creator>
      <dc:date>2006-10-27T07:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: ls command gets unreadable error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010859#M426483</link>
      <description>hi Achilles;&lt;BR /&gt;&lt;BR /&gt;it should read something like :&lt;BR /&gt; &lt;BR /&gt;ll -d /opt&lt;BR /&gt;dr-xr-xr-x  54 bin        bin           2048 Sep 13 01:17 /opt&lt;BR /&gt;&lt;BR /&gt;just do as root-user: &lt;BR /&gt;cd /&lt;BR /&gt;chmod 755 /opt&lt;BR /&gt;&lt;BR /&gt;and you will be oke&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Oct 2006 07:27:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010859#M426483</guid>
      <dc:creator>Henk Geurts</dc:creator>
      <dc:date>2006-10-27T07:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: ls command gets unreadable error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010860#M426484</link>
      <description>As mentioned, someone logged in as root changed the permissions on /opt, removing read permissions to the directory. And that is what is giving you the strange symptoms. Since /opt has been changed, I would recommend running:  &lt;BR /&gt; &lt;BR /&gt;swverify \*&lt;BR /&gt; &lt;BR /&gt;to check the rest of the system for improper permissions. This will take quite a bit of time (several minutes). It will then produce a list of problems in the /var/adm/sw/swverify.log file.</description>
      <pubDate>Fri, 27 Oct 2006 14:52:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010860#M426484</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-10-27T14:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: ls command gets unreadable error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010861#M426485</link>
      <description>Are you having any disk connection issues?&lt;BR /&gt;&lt;BR /&gt;I saw something similar to this when a SAN booted system lost access to it's root drive.&lt;BR /&gt;&lt;BR /&gt;It was running out of RAM until I tried to interact with the disks in any way.&lt;BR /&gt;&lt;BR /&gt;Is this the only issue you are having with the system right now?</description>
      <pubDate>Fri, 27 Oct 2006 16:47:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010861#M426485</guid>
      <dc:creator>Travis Harp_1</dc:creator>
      <dc:date>2006-10-27T16:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: ls command gets unreadable error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010862#M426486</link>
      <description>Thanks a lot. Finally I solved the problem: chnage the permission right of /opt to 755. SO I closed this topic now.</description>
      <pubDate>Mon, 30 Oct 2006 21:35:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010862#M426486</guid>
      <dc:creator>Achilles_2</dc:creator>
      <dc:date>2006-10-30T21:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: ls command gets unreadable error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010863#M426487</link>
      <description>Thanks all your advance</description>
      <pubDate>Mon, 30 Oct 2006 21:40:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-gets-unreadable-error/m-p/5010863#M426487</guid>
      <dc:creator>Achilles_2</dc:creator>
      <dc:date>2006-10-30T21:40:41Z</dc:date>
    </item>
  </channel>
</rss>

