ls -l File Mode

Status
Not open for further replies.

Ahjohng

Dabbler
Joined
Apr 4, 2015
Messages
34
The file mode shows:

drwxrwxrwx+

What does the last character '+' mean? This seems not to be of standard Linux. Is this a mark to show this file is in use? How do I forcibly get rid of it?

Thanks.
 
D

dlavigne

Guest
From man ls:

The next field contains a plus (‘+’) character if the file has an ACL, or a space (‘ ’) if it does not. The ls utility does not show the actual ACL; use getfacl(1) to do this.
 

Ahjohng

Dabbler
Joined
Apr 4, 2015
Messages
34
From man ls:

The next field contains a plus (‘+’) character if the file has an ACL, or a space (‘ ’) if it does not. The ls utility does not show the actual ACL; use getfacl(1) to do this.

Comparing files with this '+' and without, I found the ones with '+' has this 'fd----' field in the following.

# file: File
# owner: Owner
# group: Group

everyone@:rwxpDdaARwcCo-:fd----:allow
group@: [...]

How do I properly form the syntax using 'setfacl' to remove this 'fd----' field? I think it should be:

# setfacl -x [what should be entered here] File
 
D

dlavigne

Guest
setfacl is the hard way. How is that volume/dataset being shared? If it's CIFS, use a Windows client to modify the permissions as it understands ACLs.
 

Ahjohng

Dabbler
Joined
Apr 4, 2015
Messages
34
setfacl is the hard way. How is that volume/dataset being shared? If it's CIFS, use a Windows client to modify the permissions as it understands ACLs.

Yes, it is CIFS, but I am not able to have Windows done anything good. Finally, the following command works but not recursive into subdirectories.

setfacl -b 'filename'

With the ACL of the top level directory removed, I can change owner and mode with all files and subdirectories.

Thanks for helping.
 
Status
Not open for further replies.
Top