porting chown()