Files ownership

Hi!
I've had to upgrade LPAR2RRD installation performed by former colleague.
For unknown reason part of the files were set to owned by apache, other to apache group, even root.
Of course, update script issued errors. I've restored from backup and change everything to under /home/lpar2rrd/lpar2rrd to lpar2rrd:lpar2rrd.
So, which are the right permissions in order to work properly? Currently, I don's see any problems with the upgraded installation, but I want to clarify this issue.

Thanks!



Comments

  • Hi,

    everything should be owned by lpar2rrd except these:
    etc/web_config/* --> apache should own file here, directory should have 777
    log/error-cgi.log is a sym link to /var/tmp, source files must be owned by apache

    all directories and files should be readable for apache (644 or 755)

    Directory and file rights are properly set during upgrade procedure. Of course chown to other user cannot be done (etc/web_config/*) as install is running under lpar2rrd user
  • migueljames
    edited September 2017
    Thank you for that response, Pavel
Sign In or Register to comment.