Bug 1674509

Summary: lynis doesn't handle case when is not executed as root
Product: [Fedora] Fedora Reporter: Luca Moscato <luca>
Component: lynisAssignee: Othman Madjoudj <athmanem>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 29CC: athmanem, i, rakesh.pandit
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lynis-2.7.5-4.fc30 lynis-2.7.5-4.fc31 lynis-2.7.5-4.el7 lynis-2.7.5-4.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-24 01:08:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Luca Moscato 2019-02-11 14:01:39 UTC
Description of problem:
lynis should be executed by root user (I suppose)

Version-Release number of selected component (if applicable):


How reproducible:
As use install lynis and run it

Steps to Reproduce:


Actual results:
[luca@baratheon ~]$ lynis
/usr/bin/lynis: riga 204: /usr/share/lynis/include/consts: Permission denied
[luca@baratheon ~]$ 


Expected results:
A message that alert the user something: You must execute lynis as root

Additional info:

Comment 1 Fedora Update System 2019-09-15 01:33:53 UTC
FEDORA-2019-704fa5114d has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-704fa5114d

Comment 2 Fedora Update System 2019-09-15 01:39:11 UTC
FEDORA-2019-ad9d41a676 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-ad9d41a676

Comment 3 Fedora Update System 2019-09-15 01:44:16 UTC
FEDORA-EPEL-2019-9b6028533f has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-9b6028533f

Comment 4 Fedora Update System 2019-09-15 01:49:21 UTC
FEDORA-EPEL-2019-6024f97855 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-6024f97855

Comment 5 Fedora Update System 2019-09-16 02:05:10 UTC
lynis-2.7.5-4.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-704fa5114d

Comment 6 Fedora Update System 2019-09-16 04:03:08 UTC
lynis-2.7.5-4.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-ad9d41a676

Comment 7 Fedora Update System 2019-09-16 04:08:38 UTC
lynis-2.7.5-4.el8 has been pushed to the Fedora EPEL 8 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-9b6028533f

Comment 8 Fedora Update System 2019-09-16 04:11:47 UTC
lynis-2.7.5-4.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-6024f97855

Comment 9 Fedora Update System 2019-09-24 01:08:36 UTC
lynis-2.7.5-4.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2019-09-24 03:11:04 UTC
lynis-2.7.5-4.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2019-10-01 03:20:45 UTC
lynis-2.7.5-4.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2019-10-01 03:58:45 UTC
lynis-2.7.5-4.el8 has been pushed to the Fedora EPEL 8 stable repository. If problems still persist, please make note of it in this bug report.