I have my SSH servers setup to use only Public Key authentication with password authentication disabled.
When adding users through puppet I would like to disable user passwords.
So far I have came up with this, which seems to work, but I am not sure how secure is this:
user { 'john':
ensure => 'present',
comment => 'John Smith',
groups => ['adm','sudo','wheel','users'],
home => '/home/john',
managehome => true,
shell => '/bin/bash',
password => '*',
}
Is using password => '*'
definition considered safe for disabling user password?