Hey im searching for a SED script that rewrites every .htaccess file from /home folders and set Require in .htaccess to the ownership of the folder.

so in .htaccess there is a rule that says:
"Require ..."
And it needs to be, if the rightful/owner user of the folder is for example tom.
"Require tom"

So every folder in /home has a .htaccess file that needs to be rewriteen to the owner of that particular folder?

Any help/link/tips?

grtz