Operating System - HP-UX
1830865 Members
2638 Online
110017 Solutions
New Discussion

Re: Extra information in File permissions listing

 
Rachid.
Occasional Contributor

Extra information in File permissions listing

Hi there,
whenever we're issuing "ls -lai" a result like the following is presented:
------------------------------------------
11523 dr-xr-xr-x+ 6 bin bin 96 Feb 2 2000 sam
6 dr-xr-xr-x+ 8 bin bin 8192 Aug 23 23:36 sbin
141 dr-xr-xr-x+ 7 bin bin 96 Aug 18 17:45 share
------------------------------------------
We just can't figure out what is the "plus" sign after the last bit of permission. Man pages do not clarify its meaning, some books around us don't either. Has anyone seen this?

We're running HP-UX 11.0, and things are running fine, but this "plus" signs are unexpected, anyway.

Thanks in advance for any help,
Rachid
3 REPLIES 3
Sridhar Bhaskarla
Honored Contributor

Re: Extra information in File permissions listing

Hi Rachid,

+ sign indicates that there are additional permissions to these directories/files. They are acls (access control lists). You can use lsacl command to find out these permissions. For more information, do a man acl.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Roger Baptiste
Honored Contributor

Re: Extra information in File permissions listing

Hi,

The + implies that the file has additional permissions configured on it, through ACL.

Here is the extract from
#man ls referring to this:
***
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)).

****

In addition, you can run chacl to remove the acl entries .

HTH
raj
Take it easy.
A. Clay Stephenson
Acclaimed Contributor

Re: Extra information in File permissions listing

The plus indicates ACL's as has been mentioned. If this is an HFS filesystem then lsacl will work but if this is a Version 3.3 vxfs filesysten then you need to use the getacl command to display them.
If it ain't broke, I can fix that.