When I try to install tor without sudo, using
apt install tor Ubuntu 20.04 returns:
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
When I install it with
sudo apt install tor it works.
When I try to run it without sudo, using
tor start, it returns:
[warn] Command-line option 'start' with no value. Failing. [err] Reading config failed--see warnings above.
When I run it with sudo, using
sudo tor start, it works and returns:
[warn] You are running Tor as root. You don't need to, and you probably shouldn't.
How can I ensure I am able to run tor without
sudo? I think I should add permissions of the user-account to some group for tor, but I did not yet exactly find out how.