Setup user and group privileges correctly