- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ls command gets unreadable error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2006 10:10 PM
10-26-2006 10:10 PM
ls command gets unreadable error
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?
user1@server: /opt # echo *
*
user1@server: /home/user1 # ls /opt
/opt unreadable
user1@server: /home/user1 # cd /opt
user1@server: /opt # ls -rlt
. unreadable
total 16
user1@server: /home/user1 # cd /opt/dce
user1@server: /opt/dce # ls
bin dcecp examples include lbin lib newconfig sbin share tcl
user1@server: /opt # pwd
ksh: pwd: permission denied
user1@server: /opt # ls
. unreadable
user1@server: /opt # ls /opt
/opt unreadable
user1@server: /opt # pwd
ksh: pwd: permission denied
user1@server: /opt # cd
user1@server: /home/user1 # ls /opt
/opt unreadable
user1@server: /home/user1 # bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 178904 25752 87% /
/dev/vg00/lvol1 311296 99584 210112 32% /stand
/dev/vg00/lvol8 2613248 1466704 1137688 56% /var
/dev/vg00/lvol7 2457600 2352904 104128 96% /usr
/dev/vg00/lvol4 204800 20208 183216 10% /tmp
/dev/vg00/lvol6 7340032 3825632 3488736 52% /opt
/dev/vg00/lvol5 2048000 1065152 980936 52% /home
user1@server: /home/user1 # uname -a
HP-UX server B.11.23 U ia64 0253301370 unlimited-user license
user1@server: /home/user1 # uname
HP-UX
user1@server: /home/user1 # pwd
/home/user1
user1@server: /home/user1 # cd /opt
user1@server: /opt # pwd
ksh: pwd: permission denied
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2006 10:17 PM
10-26-2006 10:17 PM
Re: ls command gets unreadable error
dr-xr-xr-x 46 bin bin 1024 Aug 17 18:12 opt
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2006 10:21 PM
10-26-2006 10:21 PM
Re: ls command gets unreadable error
you probably have permission 711 rather than 755 on /opt.
ll / | grep opt
Change with:
chmod 755 /opt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2006 10:26 PM
10-26-2006 10:26 PM
Re: ls command gets unreadable error
i'm sure there are files in the the directory root read every file
Besides I use /usr/bin/ls and /sbin/ls, the output gets ". reachable"! It is the same output as "ls".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2006 10:28 PM
10-26-2006 10:28 PM
Re: ls command gets unreadable error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2006 11:20 PM
10-26-2006 11:20 PM
Re: ls command gets unreadable error
ll -d / /opt
getacl / /opt
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 12:15 AM
10-27-2006 12:15 AM
Re: ls command gets unreadable error
user1@server:/ # ll -d / /opt
drwxr-xr-x 19 root root 8192 Oct 27 19:35 //
dr-x--x--x 53 bin bin 8192 Aug 8 2005 /opt/
user1@server:/ # getacl / /opt
# file: /
# owner: root
# group: root
user::rwx
group::r-x
class:r-x
other:r-x
# file: /opt
# owner: bin
# group: bin
user::r-x
group::--x
class:--x
other:--x
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 12:27 AM
10-27-2006 12:27 AM
Re: ls command gets unreadable error
it should read something like :
ll -d /opt
dr-xr-xr-x 54 bin bin 2048 Sep 13 01:17 /opt
just do as root-user:
cd /
chmod 755 /opt
and you will be oke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 07:52 AM
10-27-2006 07:52 AM
Re: ls command gets unreadable error
swverify \*
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.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 09:47 AM
10-27-2006 09:47 AM
Re: ls command gets unreadable error
I saw something similar to this when a SAN booted system lost access to it's root drive.
It was running out of RAM until I tried to interact with the disks in any way.
Is this the only issue you are having with the system right now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 01:35 PM
10-30-2006 01:35 PM
Re: ls command gets unreadable error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 01:40 PM
10-30-2006 01:40 PM