tinkerrc / cypalinux

2020-2022 CyberPatriot Linux Hardening Script
5 stars 5 forks source link

`cat` the overrides in `config_sudoer()` before `bash` #10

Closed ericwang0533 closed 4 years ago

ericwang0533 commented 4 years ago

The override in config_sudoer() exits the script if the directory /etc/sudoers.d exists. Are we supposed to delete that directory?

tinkerrc commented 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.

ericwang0533 commented 4 years ago

sudoers d lines 193-198 in harden.sh I believe line 196 bash is breaking the script.

tinkerrc commented 4 years ago

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.

ericwang0533 commented 4 years ago

Got you.

tinkerrc commented 4 years ago

I should've cat them before calling bash

ericwang0533 commented 4 years ago

True. We should do that.