Closed hyperized closed 6 years ago
What is the operating system that you run the packaged version on?
$ uname -a
Linux my.host.name 4.4.0-96-generic #119~14.04.1-Ubuntu SMP Wed Sep 13 08:40:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ hostnamectl
Operating System: Ubuntu 14.04.5 LTS
Kernel: Linux 4.4.0-96-generic
Architecture: x86_64
$ ll `which sh`
lrwxrwxrwx 1 root root 4 Feb 19 2014 /bin/sh -> dash*
$ apt-cache policy dash
dash:
Installed: 0.5.7-4ubuntu1
Candidate: 0.5.7-4ubuntu1
Version table:
*** 0.5.7-4ubuntu1 0
500 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
$ bash --version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
Do you have specific language settings?
$ cat /etc/default/locale
LANG="en_US.UTF-8"
and
$ env
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
Hmm, so nothing special with the language. Do you have this only on one system or multiple systems?
@mboelen we have multiple systems with identical OS and environment (quite a homogenous environment) that all have this same issue. Is there anything I can do in terms of debugging to aid in finding the root cause of this issue?
You could do actually take the following steps:
Maybe there is some weird separator in it?
I replaced the =
with an old style :
for the following fields:
colors
upload
system-customer-name
tags
And this seemed to have completely solved the issue. I'm not entirely sure why though.
same here
$ ./lynis update check
Error: found one or more errors in profile /etc/lynis/default.prf
Details: Unknown option 'colors' found (with value: yes)
Linux 4.10.0-37-generic #41~16.04.1-Ubuntu Operating System: Ubuntu 16.04.3 LTS Kernel: Linux 4.10.0-37-generic Architecture: x86-64
fixed by @hyperized recommendations.
I had the same issue, also resolved by following @hyperized suggestion.
Operating System: Ubuntu 14.04.5 LTS
Kernel: Linux 3.13.0-100-generic
Architecture: x86_64
Wait a second... Is it possible that there is a very old installation already on the system? That could be a combination of a manual or GitHub installation in /usr/local/lynis, together with a newer packaged version.
In which file do I change =
to :
?
Operating System: Ubuntu 16.04.3 LTS
Kernel: 4.4.0-98-generic
Architecture: x86_64
@CallumND Before doing these changes... do you have an installation in /usr/local/lynis and also installed Lynis from a package?
@mboelen yes, that is correct
@mboelen also can confirm we used to have a git version installed (vs package)
Ok, then this is the cause. A recent and much older version might conflict each other. The remedy is simple: remove the old installation from /usr/local/lynis.
[Solution]: remove old installation from /usr/local/lynis
When using the latest(2.5.5-1) package from the repository and only the default profile on a newly installed server we observe:
When adding
set -x
to/usr/local/lynis/include/profiles
, we see the following output:When the
color=yes
is omitted from/etc/lynis/default.prf
we see:Details: Unknown option 'upload' found (with value: no)
Is there perhaps a mixup in config versions or are we missing something?