Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-23786

find: ‘/var/log/*’OUT > : Permission denied / Backup files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Labels:
      None
    • ToDo:
    • Module Fix Version:

      Description

      When updating the sysadmin module to version 16.0.27, the following errors occur when loading the dashboard page.

      
      ==> /var/log/httpd/error_log <==
      find: OUT > ‘/var/log/redis’OUT > : Permiso denegadoOUT >
      OUT > find: OUT > ‘/var/log/audit’OUT > : Permiso denegadoOUT >
      OUT > find: OUT > ‘/var/log/mongodb’OUT > : Permiso denegadoOUT >
      OUT > find: OUT > ‘/var/log/mariadb’OUT > : Permiso denegadoOUT >
      OUT > find: OUT > ‘/var/log/radius’OUT > : Permiso denegadoOUT >
      OUT >
      

      I have executed a chown but it still produces the error.

      
      # ls -la /var/log/
      total 28808
      drwxr-xr-x. 16 root     root         4096 oct 16 03:25 .
      drwxr-xr-x. 23 root     root         4096 mar 10  2019 ..
      -rw-------.  1 root     root         2553 jun 11  2015 anaconda.ifcfg.log
      -rw-------.  1 root     root        19585 jun 11  2015 anaconda.log
      -rw-------.  1 root     root        28314 jun 11  2015 anaconda.program.log
      -rw-------.  1 root     root       102210 jun 11  2015 anaconda.storage.log
      -rw-------.  1 root     root        53489 jun 11  2015 anaconda.syslog
      -rw-------.  1 root     root        67227 jun 11  2015 anaconda.yum.log
      -rw-r--r--   1 root     root            0 jun 15  2015 apcupsd.events
      -rw-r--r--   1 root     root         2317 jun 15  2015 apcupsd.events-20150615
      drwxrwxr-x.  5 asterisk asterisk    32768 oct 17 03:26 asterisk
      -rw-r--r--   1 root     root            0 ago 17  2017 asteriskrecording_report
      drwx------.  2 root     root         4096 ago  8  2019 audit
      -rw-r--r--   1 root     root            0 sep  5 15:33 boot.log
      -rw-r--r--   1 root     root         8416 dic  6  2021 boot.log-20211206
      -rw-r--r--   1 root     root         8666 dic 21  2021 boot.log-20211221
      -rw-r--r--   1 root     root         8534 dic 27  2021 boot.log-20211227
      -rw-r--r--   1 root     root         8785 ene 15  2022 boot.log-20220115
      -rw-r--r--   1 root     root         8534 feb  6  2022 boot.log-20220206
      -rw-r--r--   1 root     root         8474 jul 18 03:12 boot.log-20220718
      -rw-r--r--   1 root     root         8639 sep  5 15:33 boot.log-20220905
      -rw-------   1 root     utmp            0 oct  1 03:42 btmp
      -rw-------   1 root     utmp            0 sep  1 03:45 btmp-20221001
      drwxr-xr-x   2 chrony   chrony       4096 ago  8  2019 chrony
      drwxr-xr-x.  2 root     root         4096 jun 11  2015 ConsoleKit
      -rwxrwxrwx   1 root     root            0 oct 16 03:25 cron
      -rwxrwxrwx   1 root     root            0 sep 18 03:50 cron-20220925
      -rwxrwxrwx   1 root     root            0 sep 25 03:34 cron-20221002
      -rwxrwxrwx   1 root     root            0 oct  2 03:31 cron-20221009
      -rwxrwxrwx   1 root     root            0 oct  9 03:17 cron-20221016
      -rw-r--r--   1 root     root        28667 sep  5 12:01 dmesg
      -rw-r--r--   1 root     root        28237 jul 17 08:26 dmesg.old
      -rw-------   1 root     root       200783 nov  3  2016 dracut.log
      -rw-r--r--.  1 root     root       342804 jul  8  2015 dracut.log-20160101
      -rw-------   1 root     root        28954 oct 17 18:33 fail2ban.log
      -rw-------   1 root     root        33101 jul 17 10:29 fail2ban.log-20220718
      -rw-------   1 root     root        36117 ago 25 16:10 fail2ban.log-20220826
      -rw-------   1 root     root        32079 sep  5 14:04 fail2ban.log-20220905
      -rw-------   1 root     root        38953 oct 11 17:50 fail2ban.log-20221012
      -rw-r--r--   1 root     root         1087 oct 23  2021 freepbx_rpm_install.log
      -rw-------   1 root     root        12860 sep 22  2020 grubby
      -rw-r--r--   1 root     root          772 sep  7  2020 grubby_prune_debug
      drwx------.  2 asterisk asterisk     4096 oct 16 03:25 httpd
      -rw-r--r--   1 root     root            0 mar 12  2016 java_install.log
      -rw-r--r--.  1 root     root       146000 oct 17 18:25 lastlog
      -rw-r--r--   1 asterisk asterisk        0 oct 16 03:25 maillog
      -rw-r--r--   1 asterisk asterisk        0 sep 18 03:50 maillog-20220925
      -rw-r--r--   1 asterisk asterisk        0 sep 25 03:34 maillog-20221002
      -rw-r--r--   1 asterisk asterisk        0 oct  2 03:31 maillog-20221009
      -rw-r--r--   1 asterisk asterisk        0 oct  9 03:17 maillog-20221016
      drwxr-x---   2 mysql    mysql        4096 abr 15  2021 mariadb
      -rw-------   1 root     root            0 oct 16 03:25 messages
      -rw-------   1 root     root            0 sep 18 03:50 messages-20220925
      -rw-------   1 root     root            0 sep 25 03:34 messages-20221002
      -rw-------   1 root     root            0 oct  2 03:31 messages-20221009
      -rw-------   1 root     root            0 oct  9 03:17 messages-20221016
      drwxr-x---   2 mongodb  root        36864 oct 16 03:25 mongodb
      drwxrwxr-x.  2 mysql    mysql        4096 jun 11  2015 mysql
      -rw-r-----.  1 mysql    mysql      168068 ago 16  2017 mysqld.log.rpmsave
      drwxr-xr-x.  2 ntp      ntp          4096 jun 23  2020 ntpstats
      -rw-r--r--   1 root     root            0 oct 17 18:33 openvpn.log
      -rw-r--r--   1 root     root         1705 nov 24  2021 openvpn.log-20211124
      -rw-r--r--   1 root     root         1705 nov 28  2021 openvpn.log-20211128
      drwxr-xr-x.  6 asterisk asterisk     4096 oct 23  2021 pbx
      -rw-r--r--   1 root     root      4243765 ago 17  2017 post_sngupdate
      drwxr-xr-x   2 root     root         4096 ago 16  2017 preupgrade
      drwx------   3 radiusd  radiusd      4096 may 13  2019 radius
      -rw-r--r--   1 root     root     21372074 ago 16  2017 redhat_upgrade_tool.log
      drwxr-x---   2 redis    redis        4096 oct 16 03:25 redis
      drwxr-xr-x   2 root     root         4096 oct 17 00:00 sa
      -rw-------.  1 root     root            0 jun 11  2015 sangoma_bri.log
      -rw-------.  1 root     root            0 jun 11  2015 sangoma_mgd.log
      -rw-------   1 root     root            0 oct 16 03:25 secure
      -rw-------   1 root     root            0 sep 18 03:50 secure-20220925
      -rw-------   1 root     root            0 sep 25 03:34 secure-20221002
      -rw-------   1 root     root            0 oct  2 03:31 secure-20221009
      -rw-------   1 root     root            0 oct  9 03:17 secure-20221016
      -rw-r--r--   1 root     root       293955 ago 16  2017 sngupdate
      -rw-------   1 root     root            0 oct 16 03:25 spooler
      -rw-------   1 root     root            0 sep 18 03:50 spooler-20220925
      -rw-------   1 root     root            0 sep 25 03:34 spooler-20221002
      -rw-------   1 root     root            0 oct  2 03:31 spooler-20221009
      -rw-------   1 root     root            0 oct  9 03:17 spooler-20221016
      -rw-------.  1 root     root            0 jun 11  2015 tallylog
      -rw-r--r--   1 root     root       461008 ago 17  2017 upgrade.log
      -rw-r--r--   1 root     root            1 ene  2  2020 vboxadd-install.log
      -rw-r--r--   1 root     root           61 ene  2  2020 vboxadd-setup.log
      -rw-r--r--   1 root     root           61 ene  2  2020 vboxadd-setup.log.1
      -rw-r--r--   1 root     root          227 ene  2  2020 vboxadd-setup.log.2
      -rw-r--r--   1 root     root           61 ene  2  2020 vboxadd-setup.log.3
      -rw-r--r--   1 root     root           61 ene  1  2020 vboxadd-setup.log.4
      -rw-r--r--   1 root     root          361 ene  2  2020 vboxadd-uninstall.log
      -rw-------   1 root     root            0 oct 16 03:25 vsftpd.log
      -rw-------   1 root     root            0 sep 18 03:50 vsftpd.log-20220925
      -rw-------   1 root     root            0 sep 25 03:34 vsftpd.log-20221002
      -rw-------   1 root     root            0 oct  2 03:31 vsftpd.log-20221009
      -rw-------   1 root     root            0 oct  9 03:17 vsftpd.log-20221016
      -rw-------   1 root     root         3164 sep  5 12:01 wpa_supplicant.log
      -rw-r--r--   1 root     root        32920 may 27  2018 wpa_supplicant.log-20180527
      -rw-------   1 root     root        30736 abr 24  2019 wpa_supplicant.log-20190425
      -rw-------   1 root     root        31188 ene  2  2020 wpa_supplicant.log-20200102
      -rw-------   1 root     root        30736 ene 14  2022 wpa_supplicant.log-20220115
      -rw-rw-r--   1 root     utmp       207744 oct 17 18:25 wtmp
      -rw-rw-r--   1 root     utmp      1048704 feb  3  2021 wtmp-20210204
      -rw-------   1 root     root         5227 oct 11 07:39 yum.log
      -rw-------   1 root     root        31980 ago 19  2019 yum.log-20190820
      -rw-------   1 root     root         3207 dic 11  2019 yum.log-20200101
      -rw-------   1 root     root        30241 dic 27  2020 yum.log-20210101
      -rw-------   1 root     root        13705 dic 19  2021 yum.log-20220101
      

      What does the Backup option refer to?
      Since there are backup files in the system and it shows 0 files.

        Gliffy Diagrams

          Attachments

          1. screenshot-1.png
            48 kB
            VSC55
          2. screenshot-2.png
            163 kB
            VSC55
          3. screenshot-3.png
            40 kB
            VSC55

            Activity

              People

              • Assignee:
                meghabm Megha BM
                Reporter:
                vsc55 VSC55
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.