So I've set chmod 777 -R to /var/log on Raspbian and now I get some errors when logrotate runs. The errors are like:
error: skipping "/var/log/apt/term.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
Is there a way to set it back to the default?