Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ls -la /directory : Permission denied

223 views
Skip to first unread message

m4m

unread,
Oct 9, 2012, 6:14:22 AM10/9/12
to
Hi,

could anybody help me with permission denied error mesage when I ls directories.

Waht is wrong there ?

$ id
uid=6028(oracle) gid=103(dba)

$ ls -la /oradatahot*
/oradatahot01:
total 12
drwxr-xr-x 4 oracle dba 1024 Feb 5 2007 .
drwxr-xr-x 182 root root 4608 Oct 9 08:58 ..
drwxr-xr-x 2 root root 96 Sep 30 2010 lost+found
drwxr-xr-x 4 oracle dba 96 Jan 17 2007 oracle
...

/oradatahot54:
/oradatahot54/..: Permission denied
total 0
drwxr-xr-x 4 oracle dba 96 Oct 6 08:27 .
drwxr-xr-x 2 root root 96 Jul 19 13:21 lost+found
drwxr-xr-x 3 oracle dba 96 Sep 21 11:32 oracle

mount | egrep "oradatahot04|oradatahot54"
/oradatahot04 on /dev/vx/dsk/norfolk_orahotdg/oradatahot04 read/write/setuid/delaylog/largefiles/qio/ioerror=mwdisable/dev=4419a2b on Mon Sep 17 03:59:23 2012
/oradatahot54 on /dev/vx/dsk/norfolk_orahotdg/oradatahot54 read/write/setuid/delaylog/largefiles/qio/ioerror=mwdisable/dev=4419a65 on Mon Sep 17 03:59:29 2012


Thanks.

chuckers

unread,
Oct 9, 2012, 9:06:22 AM10/9/12
to
What does

ls -ld /oradatahot54

Tell you are the permissions on the directory?

m4m

unread,
Oct 10, 2012, 2:47:14 AM10/10/12
to
Permissions are OK. Oracle is owner and also oracle is in dba group.

ls -ld /oradatahot54 /oradatahot01

drwxr-xr-x 4 oracle dba 1024 Feb 5 2007 /oradatahot01
drwxr-xr-x 4 oracle dba 96 Oct 6 08:27 /oradatahot54

Both dirs *01 and *54 have same permissions, owner, group ... but something is different and I don't know what is it ?

hume.sp...@bofh.ca

unread,
Oct 10, 2012, 7:52:20 AM10/10/12
to
m4m <martin...@gmail.com> wrote:
> drwxr-xr-x 4 oracle dba 1024 Feb 5 2007 /oradatahot01
> drwxr-xr-x 4 oracle dba 96 Oct 6 08:27 /oradatahot54

These are mounted filesystems, correct? What's the permissions on the
underlying mountpoints?

Easiest way to check:

mount -F lofs / /mnt
ls -ld /mnt/oradata*

(Then you can umount /mnt...)

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/

chuckers

unread,
Oct 10, 2012, 9:06:44 AM10/10/12
to
What about

ls -ldn /oradatahot54 /oradatahot01

to cover the case where you have conflicting name service packages? If you only use /etc/passwd it shouldn't matter but I have been caught out by a files nisplus problem when a same username/different UID file bit me once on a system that used both local and directory services (long story.)

Casper H.S. Dik

unread,
Oct 15, 2012, 4:47:59 AM10/15/12
to
hume.sp...@bofh.ca writes:

>m4m <martin...@gmail.com> wrote:
>> drwxr-xr-x 4 oracle dba 1024 Feb 5 2007 /oradatahot01
>> drwxr-xr-x 4 oracle dba 96 Oct 6 08:27 /oradatahot54

>These are mounted filesystems, correct? What's the permissions on the
>underlying mountpoints?

>Easiest way to check:

> mount -F lofs / /mnt
> ls -ld /mnt/oradata*

>(Then you can umount /mnt...)

You need to use "mount -F lofs -o nosub / /mnt".

Casper
0 new messages