# usermod passwd

**URL:** <https://forums.suse.com/t/usermod-passwd/23647>\
**Category:** SLES Configure-Administer\
**Created:** [February 20, 2013, 5:11am UTC](https://forums.suse.com/t/usermod-passwd/23647 "2013-02-20T05:11:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pzwqty](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@pzwqty](https://forums.suse.com/u/pzwqty)\
**Post date:** [February 20, 2013, 5:11am UTC](https://forums.suse.com/t/usermod-passwd/23647/1 "2013-02-20T05:11:02Z")

</div>

I am building a post deployment script where i add a series of standard users and want to set them with a default password for each. I am attempting to do this via the usermod command, which was successful in doing on RHEL, using the encrypted password. Obviously encryption is working differently and i could use some direction on how others may approach this.

Thanks  
Mike

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [February 20, 2013, 7:44am UTC](https://forums.suse.com/t/usermod-passwd/23647/2 "2013-02-20T07:44:51Z")

</div>

Is it not working? If so, how? How exactly does your script work with  
regard to the original password? If you are actually using the original  
password somewhere and feeding it to usermod after going through a crypt  
function (vs. having only the crypt’d version all along) you could use the  
passwd command instead directly which would also let you use the system’s  
default function by default:

## Code:

## echo newPasswordHere | passwd --stdin username

Good luck.
