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

can follow the guide, can't read etc/default/cis-hardening: No such file or directory #217

Closed
Ondjultomte opened this issue Nov 27, 2023 · 1 comment · Fixed by #222
Closed

Comments

@Ondjultomte
Copy link

can follow the guide w/o errors

Followed this
$ git clone https://github.com/ovh/debian-cis.git && cd debian-cis $ cp debian/default /etc/default/cis-hardening $ sed -i "s#CIS_LIB_DIR=.*#CIS_LIB_DIR='$(pwd)'/lib#" etc/default/cis-hardening $ sed -i "s#CIS_CHECKS_DIR=.*#CIS_CHECKS_DIR='$(pwd)'/bin/hardening#" etc/default/cis-hardening $ sed -i "s#CIS_CONF_DIR=.*#CIS_CONF_DIR='$(pwd)'/etc#" etc/default/cis-hardening $ sed -i "s#CIS_TMP_DIR=.*#CIS_TMP_DIR='$(pwd)'/tmp#" etc/default/cis-hardening $ bin/hardening/1.1.1.1_disable_freevxfs.sh --audit-all hardening [INFO] Treating /opt/cis-hardening/bin

results in:

root@myhost:/debian-cis# sed -i "s#CIS_LIB_DIR=.*#CIS_LIB_DIR='$(pwd)'/lib#" etc/default/cis-hardening
sed: can't read etc/default/cis-hardening: No such file or directory
@mgray88
Copy link

mgray88 commented Nov 28, 2023

I believe this is a typo. All the sed lines should modify /etc/default/cis-hardening. Note the forward slash prepended to the path

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

Successfully merging a pull request may close this issue.

2 participants