I'm using the user cookbook, which is working fine for all other user accounts.
I'm able to populate the root user's authorized_keys
file with the keys listed in the data bag, however the password is remaining unset.
Here's the contents of my data bag (data_bags/users/root.json
) for the root user:
{
"id": "root",
"uid": 0,
"home": "/root",
"home_dir_mode": "0700",
"password": "shadowpasswordhash",
"ssh_keys": [
"ssh-rsa averylongkey"
],
"ssh_keygen": false
}