We have our Teamsite on windows and moreover,we have set "inherit permissions" from the Teamsite UI at a branch level and we found many of the files for which the permissions have not been inherited from its parent folders. Thats the reason Im looking out for set-inheritance through a command lin. Are there any KB articles available for setting GIDs as you specified.
$path
group