Skip to main content

Permanently change log file permissions?

Comments

3 comments

  • cPRex Jurassic Moderator
    Hey there! There isn't a good way to keep that permission from being reset. Since that file is handled by cPanel and Exim, it will reset each time there is a server or system update. It would be best to just run the script as the root user, as cPanel users should not need direct access to that log file. It's also possible that someone will comment saying you could just "chattr" the file to keep the permissions from being reset, but that will just cause other issues.
    0
  • Scott Galambos
    I didn't know chattr was a thing. So does anyone think I can chattr this log files to 644 without a problem? It can become immutably 644 then?
    0
  • cPRex Jurassic Moderator
    No, please don't try and chattr it.
    0

Please sign in to leave a comment.