Hi, can somebody help me to solve this problem

2018-05-15 16:33:33 ERROR failed to open /var/log/freeradius/linelog-accounting;Permission denied
2018-05-15 16:33:35 ERROR apr_stat failed on file /var/log/freeradius/linelog-accounting;Permission denied

AskedMay 15, 2018 - 10:40am

Answer (1)

The default config file /etc/nxlog.cof has nxlog-ce running as the user nxlog with group nxlog. That user likely does not have access(permissions) to the file locations you are trying to read.


User    nxlog
Group    nxlog

Comments (4)

  • nazir.haron's picture

    already chown to nxlog ..but still problem

    -rw-r--r-- 1 nxlog nxlog 0 May 16 08:30 linelog-accounting

    error msg:
    2018-05-16 08:32:43 ERROR apr_stat failed on file /var/log/freeradius/linelog-accounting;Permission denied

  • Zhengshi's picture

    What about the permissions on /var/log/freeradius ? The user needs to be able to see and get inside of that directory as well (+x)

  • tape's picture

    In this case, NXLog cannot access the directory. You either have to change the rights from freerad:freerad to freerad:nxlog, or give read and execution bit (755 instead of current 750) to everyone, or nxlog user has to belong to the freerad group so that nxlog can access the directory.