def setup_user_info():
  if os.geteuid() != 0:
    return

  global g_user_uid, g_user_gid
  g_user_uid, g_user_gid = \
      desktop.lib.daemon_utils.get_uid_gid(SETUID_USER, SETGID_GROUP)
Translate the user/group info into uid/gid.
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/supervisor.py/setup_user_info