Operating System - HP-UX
1832251 Members
2704 Online
110041 Solutions
New Discussion

Re: Directory permissions

 
SOLVED
Go to solution
Karsten Radke_1
Advisor

Directory permissions

Hi fellows,

i've just a question regarding directory perms within UX11.11

When doing an "ls -l", i get the follwing output:

drwxr-xr-x+ 4 yard ddtsusr 8192 Apr 26 16:32 yard

I would like to know what the "plus" sign behind the permission mask means. It does not seem to be an ACL, because an 'lsacl -l' produces an error:

abctest2:/home# lsacl -l yard
lsacl: file "yard": Function is not available (errno = 251)

TIA,
Karsten
7 REPLIES 7
RAC_1
Honored Contributor
Solution

Re: Directory permissions

you need to do getacl. lsacl is for hfs.
There is no substitute to HARDWORK
Stephen Keane
Honored Contributor

Re: Directory permissions

It is an ACL, try

# lsacl yard

instead.
Piergiacomo Perini
Trusted Contributor

Re: Directory permissions

Hi Karsten,
reading "man ls" the "+" seems
to be regarding optional ACL entries
(I don't know the cause for error in your "lsacl").

regards
pg

Arunvijai_4
Honored Contributor

Re: Directory permissions

# man ls says,

Access Control Lists (ACLs)

If a file has optional ACL entries, the -l (ell) option displays a plus sign (+) after the file's permissions. The permissions shown are a summary representation of the file's access control list, as returned by stat() in the st_mode field (see stat(2)). To list the contents of an access control list, use the lsacl command (see lsacl(1) and acl(5)) for HFS file systems, or the getacl command (see getacl(1) and aclv(5)) for JFS file systems.
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: Directory permissions

Check the file system type. If it is hfs use lsacl else use getacl first.

# lsacl /stand/vmunix -- > HFS fs

I hope /home will be in vxfs else check with bdf -t vxfs. If /home is there use getacl as,

getacl /home/yard


<-- chmod man page says -->
If a file seems to be missing from a directory, use ls -H to determine
the cause. Recovery is accomplished by the addition of a + to the
dirname:

chmod u-H dirname+

hth.
Easy to suggest when don't know about the problem!
Karsten Radke_1
Advisor

Re: Directory permissions

Thanks so far to everyone!

The 'getacl" instead of 'lsacl' was the key. I forgot to mention that the underlying Filesystem is vxfs.

Greetings,
Karsten
Karsten Radke_1
Advisor

Re: Directory permissions

no further comments :-)