In order to change in shell scripts, we have two options which are given below.
Using passwd
echo -e "{NEW_PASSWORD}\n{NEW_PASSWORD} | passwd {USER}Using chpasswd
echo "{USER}:{NEW_PASSWORD} | chpasswdSource: StackOverFlow
In order to change in shell scripts, we have two options which are given below.
Using passwd
echo -e "{NEW_PASSWORD}\n{NEW_PASSWORD} | passwd {USER}Using chpasswd
echo "{USER}:{NEW_PASSWORD} | chpasswdSource: StackOverFlow