Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $hashedpasswd='hash_here'
- exec { 'setpass':
- command => "usermod -p \"$hashedpasswd\" $user",
- path => "/bin:/usr/bin:/sbin:/usr/sbin",
- unless => "egrep -q "$user.*$hashedpasswd" /etc/shadow",
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement