Fixed chown() and chgrp()
Merge pull request #8934 from Geo23589/Issue8827

Fixed chown() and chgrp()