setting ownership and exec bit