diff options
author | root <root@krebs> | 2011-05-04 20:56:58 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-05-04 20:57:02 +0200 |
commit | 8c359fa90ef66497eb68c603560087496a4b0c31 (patch) | |
tree | 16307744a47e1df52ef12496fcac603e3fe238c3 /infest/passwd | |
parent | 3707735a695511ecc2cbda80335342d211f4c9dd (diff) |
infest/passwd: initial commit
Diffstat (limited to 'infest/passwd')
-rwxr-xr-x | infest/passwd | 11 |
1 files changed, 11 insertions, 0 deletions
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 + |