non-interactive password change

 type (in BASH):

echo -e "new_password \n new_password" | (passwd --stdin $USER)

note the spaces around \n are there for readability, do not put them in.

Popular posts from this blog

Automatically Fix Song Metadata and Filenames on Linux with Beets

A script to turn unencrypted epub files into plain text, bash

recover a usb flash drive