# Reset password using script

**URL:** <https://forums.suse.com/t/reset-password-using-script/34359>\
**Category:** SLES Configure-Administer\
**Created:** [September 14, 2019, 7:43am UTC](https://forums.suse.com/t/reset-password-using-script/34359 "2019-09-14T07:43:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mannmaniyar](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@mannmaniyar](https://forums.suse.com/u/mannmaniyar)\
**Post date:** [September 14, 2019, 7:43am UTC](https://forums.suse.com/t/reset-password-using-script/34359/1 "2019-09-14T07:43:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![strahil-nikolov-dxc](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@strahil-nikolov-dxc](https://forums.suse.com/u/strahil-nikolov-dxc)\
**Post date:** [September 17, 2019, 8:18am UTC](https://forums.suse.com/t/reset-password-using-script/34359/2 "2019-09-17T08:18:51Z")

</div>

[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`.
