summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrebs <krebs@UTART>2011-05-05 11:15:22 +0200
committerkrebs <krebs@UTART>2011-05-05 11:15:22 +0200
commitfd34f20c2898dc7e72030b775983e73f9fd45b12 (patch)
treec72a1a0e25612c8b857ba7e666d400f6850bda91
parent58c6fffa41a9cbf18fb9bfc811212c5fee2085f0 (diff)
infest/passwd: infest group, too
-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
+