• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Question change access rights /var/log/maillog

sandi44

New Pleskian
hello

i want to monitor the logfile /var/log/maillog.
so that the user has access to the file, the rights should be adjusted.

every night the file will be recreated ( logrotate? )

-rw-r-----. 1 root root 287951 15 Oct 06:27 /var/log/maillog

the goal would be that the file permissions are 644

how or where can i set this?

thanks
 
Your only option here would be to make the file world readable, like -rw-r--r--, however this means that every user account on the system can potentially read it. Maybe you should rather copy it by a script run by root and provide your user with a copy of the file that has appropriate permissions?
 
Back
Top