How can I change tor from running on root to an unprivileged user? - Debian 12

On Debian 12, I tried installing Tor on an unprivileged user but couldn’t figure out how to get sudo to work from this user (entering the root password on password prompts would return a sudo permission error so I just focused on getting the relay to work first).

If you installed tor following this guide

your relay won’t run as root but as user debian-tor.

Also sudo doesn’t ask for the root password but for the password of the user trying to use sudo. If you want to become the tor relay user on debian just use sudo -u debian-toras root. And maybe read the documentation for sudo on debian. sudo - Debian Wiki

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.