>> Can someone walk me through the steps of sending out a password to all
>> my computers for user "student."
>
> I do this a lot:
>
> yes 'PASSWORD' | passwd username
>
> Then you can extract the password from /etc/shadow
>
> also see here:
>
> http://serverfault.com/questions/87874/how-should-someone-create-an-encrypted-password-for-etc-shadow
No need to go over /etc/shadow or use mkpasswd (which is not available
that easy on all distros). How about
# salt=`pwgen 8 1`; pass=`pwgen -s 12 1`;ruby -e "puts \
ARGV[0].crypt('\$6\$' << ARGV[1] << '\$')" $pass $salt; echo $pass
$6$eemaihic$3gwFGQxMWE8n/KMZlNe3O9dVoQC5zCXrtabhpCLeDp54eYTGK8WAHovxYZLaQf8YF93Hwfh466CQ966Xoh6O81
FmstT8KObWVu
?
~pete
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.