On debian-based systems, the tor logging directory has the permissions

$ ls -ald /var/log/tor/
drwxr-s--- ... /var/log/tor/

Why is this so? Is this a security vulnerability?


According to Wikipedia, setting the set_gid bit on directories has a different meaning than with files:

Setting the setgid permission on a directory ("chmod g+s") causes new files and subdirectories created within it to inherit its group ID, rather than the primary group ID of the user who created the file

From this, it seems as though it is intended and ok.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.