Description of problem: when run from cron i get this: ^[[6C- Checking for password protection...^[[18C [ WARNING ] /usr/share/lynis/include/tests_kernel: line 109: lsmod: command not found /usr/share/lynis/include/tests_kernel: line 126: lsmod: command not found /usr/share/lynis/include/tests_filesystems: line 295: tune2fs: command not found ^[[2C- Checking package database for problems...^[[16C [ WARNING ] ^[[2C- Checking waiting connections...^[[26C [ WARNING ] /usr/share/lynis/include/tests_firewalls: line 34: lsmod: command not found ^[[4C- Checking expose_php option...^[[26C [ WARNING ] ^[[2C- Checking Syslog-NG consistency^[[27C [ WARNING ] lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/marafa/.gvfs Output information may be incomplete. lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/marafa/.gvfs Output information may be incomplete. /usr/share/lynis/include/tests_accounting: line 111: auditctl: command not found ^[[2C- Checking selected time source...^[[25C [ WARNING ] Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Hello, This was fixed long back lynis deps have module-init-tools and e2fsprogs which have these missing commands. May you update to latest f11 update for lynis and then recheck. [root@rocky ~]# yum deplist lynis Loaded plugins: downloadonly, refresh-packagekit Finding dependencies: package: lynis.noarch 1.2.6-1.fc11 dependency: config(lynis) = 1.2.6-1.fc11 provider: lynis.noarch 1.2.6-1.fc11 dependency: /bin/sh provider: bash.x86_64 4.0-6.fc11 provider: bash.x86_64 4.0-7.fc11 package: lynis.noarch 1.2.6-2.fc11 dependency: e2fsprogs provider: e2fsprogs.x86_64 1.41.4-10.fc11 provider: e2fsprogs.x86_64 1.41.4-12.fc11 dependency: config(lynis) = 1.2.6-2.fc11 provider: lynis.noarch 1.2.6-2.fc11 dependency: module-init-tools provider: module-init-tools.x86_64 3.7-9.fc11 dependency: /bin/sh provider: bash.x86_64 4.0-6.fc11 provider: bash.x86_64 4.0-7.fc11 dependency: audit provider: audit.x86_64 1.7.12-4.fc11 provider: audit.x86_64 1.7.13-1.fc11 [root@rocky ~]#
this is the output from the cronjob yesterday Subject: Cron <root@marafa> lynis -c -q -Q #--no-colors ^[[6C- Checking for password protection...^[[18C [ WARNING ] /usr/share/lynis/include/tests_kernel: line 109: lsmod: command not found /usr/share/lynis/include/tests_kernel: line 126: lsmod: command not found /usr/share/lynis/include/tests_filesystems: line 295: tune2fs: command not found ^[[2C- Checking package database for problems...^[[16C [ WARNING ] ^[[6CResult: found multiple vulnerable packages^[[13C [ WARNING ] /usr/share/lynis/include/tests_firewalls: line 34: lsmod: command not found ^[[4C- Checking expose_php option...^[[26C [ WARNING ] ^[[2C- Checking Syslog-NG consistency^[[27C [ WARNING ] lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/marafa/.gvfs Output information may be incomplete. lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/marafa/.gvfs Output information may be incomplete. /usr/share/lynis/include/tests_accounting: line 111: auditctl: command not found ^[[2C- Checking selected time source...^[[25C [ WARNING ] i m using this version: Version : 1.2.6 Release : 2.fc11
and yum deplist lynis Loaded plugins: dellsysidplugin2, fastestmirror, presto, protectbase, refresh-packagekit, security, upgrade-helper Excluding Packages in global exclude list Finished 0 packages excluded due to repository protections Finding dependencies: package: lynis.noarch 1.2.6-1.fc11 dependency: config(lynis) = 1.2.6-1.fc11 provider: lynis.noarch 1.2.6-1.fc11 dependency: /bin/sh provider: bash.x86_64 4.0-6.fc11 provider: bash.x86_64 4.0-7.fc11 package: lynis.noarch 1.2.6-2.fc11 dependency: e2fsprogs provider: e2fsprogs.x86_64 1.41.4-10.fc11 provider: e2fsprogs.x86_64 1.41.4-12.fc11 dependency: config(lynis) = 1.2.6-2.fc11 provider: lynis.noarch 1.2.6-2.fc11 dependency: module-init-tools provider: module-init-tools.x86_64 3.7-9.fc11 dependency: /bin/sh provider: bash.x86_64 4.0-6.fc11 provider: bash.x86_64 4.0-7.fc11 dependency: audit provider: audit.x86_64 1.7.12-4.fc11 provider: audit.x86_64 1.7.13-1.fc11 [marafa@marafa ~]$
Re-opening .. will recheck in some time. Thanks for testing again.
I had long back added Requires: e2fsprogs, module-init-tools, audit to package and I cann't reproduce the bug. I am closing it as NOTABUG. Your list has module-init-tools package installed and it provides lsmod. So, there is something wrong here on your side. Thanks,