Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: grep binary not found #1191

Closed
baxeno opened this issue Jul 19, 2021 · 3 comments
Closed

Fatal error: grep binary not found #1191

baxeno opened this issue Jul 19, 2021 · 3 comments
Assignees
Labels

Comments

@baxeno
Copy link

baxeno commented Jul 19, 2021

Describe the bug

Lynis hit a fatal error during System tools section.

Fatal error: grep binary not found

Version

  • Distribution ptxdist 2020.10
  • Lynis version 3.0.5

Expected behavior

  1. I expected Lynis to output name of binary not found. Lynis is not looking for grep but egrep.
  2. Don't use deprecated functions intended for historical applications.

Output
N/A

Additional context
Host is running GNU grep 3.3.

man page:

In addition, two variant programs egrep and fgrep are available.
egrep is the same as grep -E. fgrep is the same as grep -F.
Direct invocation as either egrep or fgrep is deprecated,
but is provided to allow historical applications that rely on
them to run unmodified.
@baxeno baxeno changed the title grep not found Fatal error: grep binary not found Jul 19, 2021
@mboelen mboelen self-assigned this Jul 20, 2021
@mboelen
Copy link
Member

mboelen commented Jul 20, 2021

Thanks for reporting. If I understand correctly you don't have egrep on your system?

As a starter, I corrected the error message: 3a03af4

@baxeno
Copy link
Author

baxeno commented Jul 20, 2021

Thanks for fixing the error message.

Yes, you are correct. My system does not have egrep or fgrep.

Am I suppose to do a manual alias egrep='grep -E' before running Lynis?

@mboelen
Copy link
Member

mboelen commented Jul 20, 2021

Seeing that you are on an embedded Linux distribution, it makes sense that egrep and fgrep are missing. For now, you will have to alias it if the binaries are not there. I will make an action to migrate away from the usage of egrep.

Closing this issue after making the commit above and scheduled future action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants