I am using NetHunter Kali Linux. I am using the Tor service to start the Tor hidden services. When I enter
sudo service tor start in the command line, the following error pops up:
/etc/init.d/tor: line 140: ulimit: open files: cannot modify limit: Operation not permitted Checking if tor configuration is valid ... failed! Oct 24 15:28:01.409 [notice] Tor 0.4.8.7 running on Linux with Libevent 2.1.12-stable, OpenSSL 3.0.11, Zlib 1.2.13, Liblzma 5.4.4, Libzstd 1.5.5 and Glibc 2.37 as libc. Oct 24 15:28:01.409 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/ Oct 24 15:28:01.410 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc". Oct 24 15:28:01.411 [notice] Read configuration file "/etc/tor/torrc". Oct 24 15:28:01.418 [warn] /var/lib/tor/hidden_service/ is not owned by this user (debian-tor, 120) but by root (0). Perhaps you are running Tor as the wrong user? Oct 24 15:28:01.419 [warn] Failed to parse/validate config: Failed to configure rendezvous options. See logs for details. Oct 24 15:28:01.419 [err] Reading config failed--see warnings above.