Hi,
I want to read log file "/var/log/auth.log" if someone logged via SSH it shows me error "/var/log/auth.log".[13] Permission denied.".
If I change the permission with command "sudo chmod 640 /var/log/auth.log" then it temporary works.
After server restart the message appears again "cannot open file "/var/log/auth.log".[13] Permission denied.".
Anyone knows how to solve it forever?
Many thanks for help.
I want to read log file "/var/log/auth.log" if someone logged via SSH it shows me error "/var/log/auth.log".[13] Permission denied.".
If I change the permission with command "sudo chmod 640 /var/log/auth.log" then it temporary works.
After server restart the message appears again "cannot open file "/var/log/auth.log".[13] Permission denied.".
Anyone knows how to solve it forever?
Many thanks for help.