setup uid/gid for both web app and daemon