Reset password using script

Hi,

I know we can reset the password remotely using echo password | passwd --stdin but in SLES 12 I dont see stdin option available. In this case what will be the alternatives to reset the password using script.

Best Wishes,
Mann.

[QUOTE=mannmaniyar;58440]Hi,

I know we can reset the password remotely using echo password | passwd --stdin but in SLES 12 I dont see stdin option available. In this case what will be the alternatives to reset the password using script.

Best Wishes,
Mann.[/QUOTE]

I use echo 'user:password' | chpasswd.