Am 27.01.10 18:14, schrieb Paul Branston:
A little more generic in case there is no usermod -p

PASSWORD=$(echo "my_new_password" | encrypt -b 6)
perl -p -i.bk -e  's/^root:.*?:/root:$PASSWORD:/' /etc/shadow


/etc/shadow: no such file

Reply via email to