Remove FACL from a Folder/File Recursively

Remove FACL from a Folder/File Recursively

Remove FACL from a Folder/File Recursively

This blog assumes you followed our last blog on setting FACL with a LDAP group.

/linux-server/setfacl-using-ldap-groups/

login as root

from here browse to the directory that you set the FACL on

to remove the FACL from an individual file, issue the following command(modify the file name):

check to make sure it’s removed…

now from here let’s remove FACL from a folder

here we removed the FACL from the folder, but not the sub-contents, if you change into the folder, and look at the sub-contents, you still see the + for facl

as you can see the facl is still in place

if we issue the above command with the -R option this will change this recursively

if we take a look inside of folder2, we can see the sub-contents that had the FACL no longer do.

That’s it!

Hosted Linux Servers at www.zwiegnet.com/go

Leave a Reply

Your email address will not be published. Required fields are marked *