<div dir="ltr"><div dir="ltr">Best way to check if your Linux box is safe is to use 'linux priv checker' <div><br></div><div><a href="https://github.com/sleventyeleven/linuxprivchecker">https://github.com/sleventyeleven/linuxprivchecker</a><br></div><div><br></div><div>script should be first run as a normal user and then elevate your rights and run it as a root,</div><div>it will check many things, and I would suggest to focus on these things first. </div><div><br></div><div>And free without premium plans. </div><div><br></div><div>Piotr</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">śr., 3 cze 2020 o 22:40 Roy Bamford <<a href="mailto:roy@crossford.net">roy@crossford.net</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2020.06.03 22:14, Andrew Ramage wrote:<br>
> Attempting to run it from the directory it was installed in, I get<br>
> <br>
> andrew@andrew-Lenovo-G50-30:/usr/share$ lynis<br>
> /usr/sbin/lynis: 204: .: Can't open /usr/share/lynis/include/consts<br>
> andrew@andrew-Lenovo-G50-30:/usr/share$<br>
> <br>
<br>
[snip] <br>
<br>
Andrew,<br>
<br>
Your /usr/share$ prompt says that you are running it as a normal user.<br>
That didn't didn't work for me either.<br>
<br>
Can't open /usr/share/lynis/include/consts tells that the file exists.<br>
I suspect you have everything owned by root too.<br>
<br>
Read man lynis, at least as far as <br>
<br>
FIRST TIME USAGE<br>
When running Lynis for the first time, run: lynis audit system<br>
<br>
and try it from a root shell.<br>
<br>
<br>
As a user I get<br>
$ ls -l /usr/share/lynis/include/consts<br>
ls: cannot access '/usr/share/lynis/include/consts': Permission denied<br>
When I try to ls that file.<br>
<br>
Regards,<br>
<br>
Roy Bamford<br>
-- <br>
EdLUG mailing list<br>
<a href="mailto:EdLUG@lists.edlug.org.uk" target="_blank">EdLUG@lists.edlug.org.uk</a><br>
<a href="https://lists.edlug.org.uk/mailman/listinfo/edlug" rel="noreferrer" target="_blank">https://lists.edlug.org.uk/mailman/listinfo/edlug</a></blockquote></div>