logrotate-error: Ignoring imscp because of bad file mode

  • Hello,


    I installed IMSCP on a newly installed server (Debian Stretch).
    I will now get following info-mail:



    Cron Daemon
    Subject: Cron <root@node42h> test -x /usr/sbin/anacron || ( cd / && run-parts —report /etc/cron.daily )


    /etc/cron.daily/logrotate:
    error: Ignoring imscp because of bad file mode - must be 0644 or 0444.


    —————-


    i-MSCP 1.4.6
    Build: 20170616
    Codename: Zimmer


    Debian Stretch

  • /etc/cron.daily/logrotate:
    error: Ignoring imscp because of bad file mode - must be 0644 or 0444.

    Current mode is?


    On my jessie test server:


    Code
    1. root@jessie:/usr/local/src/imscp# ls -la /etc/logrotate.d/imscp
    2. -rw-r--r-- 1 root staff 0 juin 28 19:42 /etc/logrotate.d/imscp

    ---> 0644 as expected. In my case, only group is wrong.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • A fix has been added in our development branch. See https://github.com/i-MSCP/imsc…1936e62b746cd1961e0ecd27b
    This fix will be part of next release.


    Thank you for your report.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • on my server:


    root@node42h / # ls -la /etc/logrotate.d/imscp
    -rw-rw-r-- 1 root root 0 Jun 26 16:04 /etc/logrotate.d/imscp


    For now, you can change the mode manually: chmod 0644 /etc/logrotate.d/imscp


    Permissions are not fixed in current version and so, if the file that is copied is world-readable, it will stay world-readable. This shouldn't occurs normally but this depends of how you have copied the i-MSCP archive on your system.


    As stated above, this will be fixed in next release.
    Thank you again for your report.
    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206