Set proper owner, group, and mode