Warnings in syslog for wrong permissions on hidden service dir are misleading
I had the wrong permissions on my hidden service directory which caused the tor service to fail starting. Logging doesn't work when the permissions are not set properly, so I could only get info from the syslog. I see the following errors:
Dec 24 00:46:28 ArchLaptop tor: Dec 24 00:46:28.460 [notice] Read configuration file "/etc/tor/torrc". Dec 24 00:46:28 ArchLaptop tor: Dec 24 00:46:28.465 [warn] Permissions on directory /home/merito/hidden_service/ are too permissive. Dec 24 00:46:28 ArchLaptop tor: Dec 24 00:46:28.465 [warn] Failed to parse/validate config: Failed to configure rendezvous options. See logs for details. Dec 24 00:46:28 ArchLaptop tor: Dec 24 00:46:28.465 [err] Reading config failed--see warnings above. Dec 24 00:46:28 ArchLaptop systemd: tor.service: Main process exited, code=exited, status=1/FAILURE
Maybe the log entry on the permissions for the directory should be of level err? A warning seems to suggest that this is acceptable, so I tried to find an issue in the parsing of the config, thinking there might be some kind of complicated problem with configuring rendezvous options.