Access Gateway Service installed on Linux dos not rotate the "ags_error.log" file

  • 7023729
  • 19-Feb-2019
  • 19-Feb-2019

Environment

  • Access Manager 4.3
  • Access Manager 4.4

Situation

  • logrotate returns the following error: "skipping "/var/opt/novell/amlogging/logs/ags_error.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation" while executing the "/etc/logrotate.d/novell-mag -> /opt/novell/nam/mag/conf/logrotate.conf"

  • The "/var/opt/novell/amlogging/logs/ags_error.log" file does not get rotated

Resolution

modify the "/opt/novell/nam/mag/conf/logrotate.conf":

/var/opt/novell/amlogging/logs/ags_error.log  {
        su novlwww novlwww
        copytruncate
        daily
        rotate 10
        size 50M
        notifempty
        missingok
        compress
}