• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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