diff options
-rwxr-xr-x | infest/passwd | 6 |
1 files 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 |