setting owner and mode for file