Everybody knows passwd
command but it’s useless when you need to change ex. root password from command line without waiting for input. In such case oneliner below could help:
echo "root:new_password" | chpasswd
Everybody knows passwd
command but it’s useless when you need to change ex. root password from command line without waiting for input. In such case oneliner below could help:
echo "root:new_password" | chpasswd