


The main configuration file for the Tor service is /etc/tor/torrc. When everything is ready for traffic exchange with the Internet through the Tor network, it will display: Lines containing the word Bootstrapped indicate the progress of connecting to the Tor network. For this reason, sudo is used with the -u option, followed by the name of the user on whose behalf the command is executed.Įxample of running tor without demonization: But for the service to work, it needs files and directories (/var/lib/tor) the permissions to which are closed to all users (even root) and which belong to the debian-tor or tor user (the username depends on the distribution). In fact, tor does not require superuser privileges. On Arch Linux, BlackArch, and derivatives, the startup is done like this: If you want the Tor service not to go into the background, for example, for debugging, and so that it can be closed with CTRL+c, then start the Tor service as follows in Debian and its derivatives: The tor launch methods shown above turn it into a daemon – that is, a process that runs in the background and is detached from the console.

How to start the tor service without switching to the background
