I have user
who has created a folder and so the permissions are user:user
. I have now added user
to group
so my question is how can I update all folders created by user
, as if I'd done chown user:group
, but not all folders, because some have different owners. In effect - refresh folders to update the new group rights? Filezilla lists them still with the old user:group
permissions.
Use
find
to do this:it will finds all directories which belongs to the user
$USER
and changes the group of them togroupname
.$USER
is the current user you can change it with your desired one.