Skip to content

Commit

Permalink
Add fail test for accounts_root_gid_zero
Browse files Browse the repository at this point in the history
Avoid -o flag since it's used with -u flag
  • Loading branch information
alanmcanonical committed Jan 10, 2025
1 parent 42f838c commit 0ff7fd3
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# Remediation doesn't fix the rule, only locks passwords
# of non-root accounts with uid 0.
# remediation = none

useradd --gid 0 root2

0 comments on commit 0ff7fd3

Please sign in to comment.