Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $hashedpasswd='hash_here'
  2. exec { 'setpass':
  3. command => "usermod -p \"$hashedpasswd\" $user",
  4. path => "/bin:/usr/bin:/sbin:/usr/sbin",
  5. unless => "egrep -q "$user.*$hashedpasswd" /etc/shadow",
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement