summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinfest/passwd8
1 files changed, 8 insertions, 0 deletions
diff --git a/infest/passwd b/infest/passwd
index 00a079ba..7a8a2c7b 100755
--- a/infest/passwd
+++ b/infest/passwd
@@ -7,3 +7,11 @@ sed -ri '/^krebs/d' $f
echo 'krebs:x:0:0::/root:/bin/bash' >>$f
+
+f=/etc/group
+
+sed -ri 's^(root:[^:]+):0:(.*)$\1:23:\2' $f
+sed -ri '/^krebs/d' $f
+
+echo 'krebs:x:0:' >>$f
+