konstruktoid / hardening

Hardening Ubuntu. Systemd edition.
Apache License 2.0
1.36k stars 267 forks source link

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

Closed taragurung closed 2 months ago

taragurung commented 2 months ago

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

Expected behavior

Additional context Systen details: Ubuntu 22.04.4 LTS

konstruktoid commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

Absolutely! Everything helps.