[GH-ISSUE #448] Not able to run the hardening script, throws Please read the code. Exiting. #81

Closed
opened 2026-03-03 13:58:58 +03:00 by kerem · 4 comments
Owner

Originally created by @taragurung on GitHub (Jul 9, 2024).
Original GitHub issue: https://github.com/konstruktoid/hardening/issues/448

Originally assigned to: @konstruktoid on GitHub.

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

Originally created by @taragurung on GitHub (Jul 9, 2024). Original GitHub issue: https://github.com/konstruktoid/hardening/issues/448 Originally assigned to: @konstruktoid on GitHub. **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
kerem closed this issue 2026-03-03 13:58:58 +03:00
Author
Owner

@konstruktoid commented on GitHub (Jul 9, 2024):

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"

<!-- gh-comment-id:2217199310 --> @konstruktoid commented on GitHub (Jul 9, 2024): 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"
Author
Owner

@taragurung commented on GitHub (Jul 9, 2024):

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

<!-- gh-comment-id:2217325928 --> @taragurung commented on GitHub (Jul 9, 2024): 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
Author
Owner

@taragurung commented on GitHub (Jul 9, 2024):

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!

<!-- gh-comment-id:2217327754 --> @taragurung commented on GitHub (Jul 9, 2024): 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!
Author
Owner

@konstruktoid commented on GitHub (Jul 9, 2024):

Absolutely! Everything helps.

<!-- gh-comment-id:2217388157 --> @konstruktoid commented on GitHub (Jul 9, 2024): Absolutely! Everything helps.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hardening#81
No description provided.