stripping permissions

Status
Not open for further replies.

creepwood

Explorer
Joined
Jul 12, 2011
Messages
86
I'm trying to reset my permissions on all my data. Right now there is only my stuff on my NAS and before letting someone else store data on it, I'd like to reset all the permissions.

Some files/folders have extra permissions as ACL. I'd like to strip that as well. googling for an hour trying to find a way to do this through shell.

I've tried
Code:
setfacl -b file
which works fine, however I'd like to do this on all files recursively.

How would I do this on all files recursively?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Hi Creepwood,

From the top level parent folder, try: find . -type f -exec setfacl -b {} \;

EDIT: For folders do find . -type d -exec setfacl -b {} \;
 

creepwood

Explorer
Joined
Jul 12, 2011
Messages
86
working like a charm. Had to do it on folders as well but just changed the type to d

thank you ^.^
 
Status
Not open for further replies.
Top