Skip to content

Commit c2c978c

Browse files
Fix failing test setup for debian platform where audit group does not exist
1 parent 1ae3f91 commit c2c978c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎linux_os/guide/auditing/auditd_configure_rules/file_ownership_var_log_audit/tests/correct_value_log_group.pass.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ fi
99

1010
touch "/var/log/audit/audit.log"
1111
chown root -R "/var/log/audit/"
12+
# The 'audit' group may not created by the package on all distros
13+
groupadd -f audit
1214
chgrp audit -R "/var/log/audit"

0 commit comments

Comments
 (0)