mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-24 03:24:34 +02:00
IMP(shfmt): add shell formatter
This commit is contained in:
@ -9,7 +9,7 @@ test_audit() {
|
||||
|
||||
local test_user="testshadowuser"
|
||||
|
||||
describe Tests purposely failing
|
||||
describe Tests purposely failing
|
||||
useradd "$test_user"
|
||||
usermod -aG shadow "$test_user"
|
||||
register_test retvalshouldbe 1
|
||||
@ -17,11 +17,11 @@ test_audit() {
|
||||
run noncompliant /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||
userdel "$test_user"
|
||||
|
||||
describe Tests purposely failing
|
||||
describe Tests purposely failing
|
||||
useradd --no-user-group -g shadow "$test_user"
|
||||
register_test retvalshouldbe 1
|
||||
register_test contain "Some users have shadow id as their primary group"
|
||||
run noncompliant /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||
userdel "$test_user"
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user