Mailinglist Archive: opensuse (3397 mails)
| < Previous | Next > |
finding files with ACL's
- From: Jason Joines <support@xxxxxxxxxxxxxxx>
- Date: Wed, 06 Apr 2005 16:16:50 -0500
- Message-id: <425451C2.9090607@xxxxxxxxxxxxxxx>
When deleting users, I need to find all files they have access to
and remove their rights so noone accidentaly inherits them. Finding
files they own is easy with something like 'find / -user jadoe' and then
manipulating is also easy, 'find / -user jadoe -exec chown jodoe {}
\;'. Removing them from groups takes care of that angle but ACL's are a
different story.
I've been using 'getfacl -R -P --absolute-names --skip-base / | grep jadoe'. While that tells me if an ACL exists it doesn't report the file. I can remove them globally with 'setfacl -R -P -x u:jadoe /; setfacl -R -P -d -x u:jadoe /' but it is very time and resource consuming and I still don't know what files had the ACL.
While searching for a good way to do this I found a man page for some version of find (think it was on solaris) that had a -acl option with it. However, none of my finds (SuSE 8.0 - 9.2) have an option like this. Anyone know of a good way to do the job?
Thanks,
Jason Joines
===============================
I've been using 'getfacl -R -P --absolute-names --skip-base / | grep jadoe'. While that tells me if an ACL exists it doesn't report the file. I can remove them globally with 'setfacl -R -P -x u:jadoe /; setfacl -R -P -d -x u:jadoe /' but it is very time and resource consuming and I still don't know what files had the ACL.
While searching for a good way to do this I found a man page for some version of find (think it was on solaris) that had a -acl option with it. However, none of my finds (SuSE 8.0 - 9.2) have an option like this. Anyone know of a good way to do the job?
Thanks,
Jason Joines
===============================
| < Previous | Next > |