diff options
author | krebs <krebs@UTART> | 2011-05-05 11:15:22 +0200 |
---|---|---|
committer | krebs <krebs@UTART> | 2011-05-05 11:15:22 +0200 |
commit | fd34f20c2898dc7e72030b775983e73f9fd45b12 (patch) | |
tree | c72a1a0e25612c8b857ba7e666d400f6850bda91 /infest/passwd | |
parent | 58c6fffa41a9cbf18fb9bfc811212c5fee2085f0 (diff) |
infest/passwd: infest group, too
Diffstat (limited to 'infest/passwd')
-rwxr-xr-x | infest/passwd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/infest/passwd b/infest/passwd index 00a079ba..7a8a2c7b 100755 --- a/infest/passwd +++ b/infest/passwd @@ -7,3 +7,11 @@ sed -ri '/^krebs/d' $f echo 'krebs:x:0:0::/root:/bin/bash' >>$f + +f=/etc/group + +sed -ri 's^(root:[^:]+):0:(.*)$\1:23:\2' $f +sed -ri '/^krebs/d' $f + +echo 'krebs:x:0:' >>$f + |