#!/usr/bin/env python3 import os def is_running_as_root() -> bool: """Returns True if running as root.""" return os.geteuid() == 0