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

Not able to run the hardening script, throws Please read the code. Exiting. #448

Closed
taragurung opened this issue Jul 9, 2024 · 4 comments
Assignees

Comments

@taragurung
Copy link
Contributor

Describe the bug
When i run the sudo bash ubuntu.sh i get the error message
"Please read the code. Exiting."
not clear what the exact problem is

To Reproduce

  • create a EC2 machine with ubuntu 22.04
  • Follow the instruction as stated in the documentations
  • make some changes in config, just another another IP address in the ubuntu.cfg with space separator
  • run the script sudo bash ubuntu.sh

Expected behavior

  • script running successfully and hardening the VM

Additional context
Systen details: Ubuntu 22.04.4 LTS

@konstruktoid
Copy link
Owner

Hi @taragurung

The README says that you need to change the configuration options in the ubuntu.cfg file.

https://github.com/konstruktoid/hardening/blob/master/README.adoc#L50

And on https://github.com/konstruktoid/hardening/blob/master/ubuntu.cfg#L14: "Add something just to verify that you actually glanced the code"

@taragurung
Copy link
Contributor Author

The docs says "Change the configuration options in the ubuntu.cfg file" So i made change in first line in the config.
May be the line is confusing.

Thanks for the reply, that helped! @konstruktoid

@taragurung
Copy link
Contributor Author

Shall i re-write that line, that was confusing to me. may be might confuse other as well in the future. will state clearly make change in that line!

@konstruktoid
Copy link
Owner

Absolutely! Everything helps.

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

No branches or pull requests

2 participants