How to go through every file and directory on server and change group ownership?
0
votes
0
answers
181
views
The goal is to loop through every file on the server, check if each file or dir has the 'groupA' group in the permissions. If the 'groupA' group is in the permissions, change it to 'groupB'. Otherwise leave it as is. I would really like to use the setfacl command but am coming up short. Got the closest with the code below. Please help
/ -group groupA -exec chown groupB '{}' '+'
Asked by ImACarrot
(91 rep)
Jan 27, 2022, 08:24 PM
Last activity: Jan 28, 2022, 10:46 AM
Last activity: Jan 28, 2022, 10:46 AM