add user and group permissions to files