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 ===============================
On 06.04.05,16:16, Jason Joines wrote:
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?
Maybe:
find / -user jadoe | xargs -i getfacl {}
?
- Jostein
--
Jostein Berntsen
participants (2)
-
Jason Joines
-
Jostein Berntsen