file/directory permissions trailing + ( drwxr-xr-x+ ) [closed]
The trailing +
signify that ACL
, Access Control List, is set on the directory.
You can use getfacl
to get the details
getfacl directory
Following output is from getfacl Codespace
which have ACL set by setfacl -m u:umesh:rw Codespace
. Here setfacl
is giving rw
permission to Codespace
directory for user umesh
.
# file: Codespace/# owner: root# group: rootuser::rwxuser:umesh:rw-group::r-xmask::rwxother::r-x
and we can remove the ACL
using setfacl
, for example, for the above sample
setfacl -x u:umesh Codespace/
More details at man setfacl
and man getfacl
The + when listing a file will signify extended permissions on the file. These permissions will be set with access control lists. If you run "getfacl directory" you will see the extended permissions on the directory.
Depending on how the access control lists are set up, to remove, run:
setfacl -x u:username directory
and/or
setfacl -x g:groupname directory
To remove the + from the listing, you may also need to run:
setfacl -x m directory
setfacl -b directory
Remove all extended ACL entries. The base ACL entries of the owner, group and others are retained.