# Privileged mode gates system-file writes The application starts read-only and permits changes to `/etc/hosts` only after sudo access has been validated and a timestamped backup has been created. All privileged writes go through `HostsManager` during that mode. This makes the authorization boundary visible to the user and guarantees a pre-edit safety snapshot. While Privileged Mode remains active, the TUI exposes that session's exact Pre-edit Backup path and can restore it after explicit confirmation. The restore confirmation identifies both the backup source and Hosts File target; it presents an exact-file Git-style diff and rechecks both reviewed files before restoring. On success the application reloads the Hosts File and clears undo/redo history.