From 40c1e843753ec705f1252c0aa7c813f10e1489e8 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 4 May 2011 22:34:52 +0200 Subject: infest/passwd: remove borken krebs first --- infest/passwd | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/infest/passwd b/infest/passwd index 090840bf..25909702 100755 --- a/infest/passwd +++ b/infest/passwd @@ -3,9 +3,7 @@ f=/etc/passwd sed -ri 's^(root:[^:]+):0:0:(.*)$\1:23:23:\2' $f +sed -ri '/^krebs/d' $f -x='krebs:x:0:0:/krebs:/bin/bash' -if ! fgrep -q $x $f; then - echo $x >>$f -fi +echo 'krebs:x:0:0:/krebs:/bin/bash' >>$f -- cgit v1.2.3