Adding uid and gid to profile; create config file securely