AnsweredAssumed Answered

Needs to develop a script which will automate password change

Question asked by vijith G on Jul 23, 2020
Latest reply on Jul 25, 2020 by vijith G

Hi,

 

In my current project I must develop a script which will automate changing password. Manually I cannot enter the password. The script has to provide the password. When I checked the passwd command option I could not find --stdin option. Please let me know any solution for this

 

echo "Password \password"| passwd --stdin root

did not work

reason  

1: --stdin option not available.

2: echo not putting the "Password" in new password: option

 

Thanks & Regards

Vijith G

Outcomes