Closed ericwang0533 closed 4 years ago
Can you debug it a bit more? Please provide a screenshot of the crash or try to figure out on what line it crashed.
lines 193-198 in harden.sh
I believe line 196 bash
is breaking the script.
It doesn't exit the script, it just spawns the bash shell for you so that you can cat
the overrides files. You can use exit
to continue the script if there's nothing that's concerning.
Got you.
I should've cat
them before calling bash
True. We should do that.
The override in config_sudoer() exits the script if the directory /etc/sudoers.d exists. Are we supposed to delete that directory?