I have an issue where I get the following error when trying to download apache logs:
rsync: send_files failed to open "/var/log/apache2/log-filename": Permission denied (13)
The command I'm running is:
+/usr/bin/rsync -avz -e 'ssh -i /home/weblogs/.ssh/id_logaccess_rsa' 'logaccess@servername:/var/log/apache2/logname*.gz' /home/weblogs/logs/serverdirectory
(I've censored company information with things like 'serverdirectory, log-filename, servername etc)
When looking at the logs themselves, it looks like the issue started when the root user randomly switched groups, it seems to switch from primary to adm exactly when the permission issue started. The group switch seems to have made the logaccess user to lose access to logs.
I'm running an ubuntu box with apache 2.