def drop_privileges():
    """
    Set settings.DROPLET_USER UID for the current process

    After calling this, root operation will be impossible to execute

    See root context manager
    """
    uid = int(pwd.getpwnam(settings.DROPLET_USER).pw_uid)
    os.setuid(uid)