Comments (3)
Thanks for reporting. For the details, please see the lynis.log file (lynis show details SSH-7404
).
What does it show?
from lynis.
2024-05-27 10:27:51 Performing test ID SSH-7404 (Check SSH daemon file location)
2024-05-27 10:27:51 Test: searching for sshd_config file
2024-05-27 10:27:51 Result: /etc/ssh/sshd_config exists
2024-05-27 10:27:51 Test: check if we can access /etc/ssh/sshd_config (escaped: /etc/ssh/sshd_config)
2024-05-27 10:27:51 Result: file is not owned by current user ID (1000), but UID 0
2024-05-27 10:27:51 Result: can not read /etc/ssh/sshd_config file (no permission)
2024-05-27 10:27:51 Result: No sshd configuration found
2024-05-27 10:27:51 Exception: test has an exceptional event (SSH-7404:1) with text SSH daemon is running, but no readable configuration file found
2024-05-27 10:27:56 ====
from lynis.
This is then to be expected, as you tightened things down. One option that I see is to replace the message "not found" with "not readable by user" or something, and to prevent the exception. Will give it a thought and see what we can change.
Edit: Adding some tags to allow others to chime in.
from lynis.
Related Issues (20)
- PKGS-7392 - Found one or more vulnerable package right after dist-upgrade HOT 10
- NETW-3200 and FILE-6430 do no longer detect blacklisted modules HOT 4
- Function/test: [SSH-7404:01], Exception found!
- Unknown OS found - gardenlinux
- JBD2 is mistakenly undetected as a missing module in kernel while being built-in to it
- [PKGS-7398] NixOS: Add package audit tool vulnix
- Potential false positive on protocol detections HOT 5
- [DBS-1882] Exception HOT 1
- Potental false positive for DBS-1820 HOT 1
- [HRDN-7222] When checking permissions, permissions of symlinks are checked instead of the binary file (compilers)
- NAME-4404 is a false positive when hostname is resolved by systemd NSS modules
- Unknown OS found: openSUSE Tumbleweed-Slowroll
- Certificate of https://packages.cisofy.com has expired HOT 2
- Unknown OS found: Buildroot
- Unknown OS found: Peppermint
- fedora 40 bug on detecting systemd-analyze version HOT 6
- default_gateway not found
- small bug in /usr/share/lynis/include/tests_kernel line 695 HOT 1
- Make use of ID_LIKE from /etc/os-release for wider OS derivatives coverage
- Test NETW-3200 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lynis.