You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error executing action modify on resource 'user_account[root]'
Chef::Exceptions::Exec
user[root](/var/chef/cache/cookbooks/user/providers/account.rb line 94) had an error: Chef::Exceptions::Exec: usermod -m -d '/home/root' root returned 8, expected 0
Cookbook Trace:
/var/chef/cache/cookbooks/user/providers/account.rb:105:in user_resource' /var/chef/cache/cookbooks/user/providers/account.rb:46:inblock in class_from_file'
Resource Declaration:
In /var/chef/cache/cookbooks/rollcall/recipes/default.rb
13: user_account 'root' do
14: ssh_keys "ssh-rsa ..."
15: action :modify
16: end
17:
Compiled Resource:
Declared in /var/chef/cache/cookbooks/rollcall/recipes/default.rb:13:in `from_file'
user_account("root") do
action [:modify]
retries 0
retry_delay 2
cookbook_name "rollcall"
recipe_name "default"
ssh_keys "ssh-rsa ..."
username "root"
end
Any idea what I'm doing wrong?
Thanks,
Nicolas
The text was updated successfully, but these errors were encountered:
When I want to create a new user like so:
Everything works as planned.
But when I try the following:
I get the following error:
Error executing action
modify
on resource 'user_account[root]'Chef::Exceptions::Exec
user[root](/var/chef/cache/cookbooks/user/providers/account.rb line 94) had an error: Chef::Exceptions::Exec: usermod -m -d '/home/root' root returned 8, expected 0
Cookbook Trace:
/var/chef/cache/cookbooks/user/providers/account.rb:105:in
user_resource' /var/chef/cache/cookbooks/user/providers/account.rb:46:in
block in class_from_file'Resource Declaration:
In /var/chef/cache/cookbooks/rollcall/recipes/default.rb
13: user_account 'root' do
14: ssh_keys "ssh-rsa ..."
15: action :modify
16: end
17:
Compiled Resource:
Declared in /var/chef/cache/cookbooks/rollcall/recipes/default.rb:13:in `from_file'
user_account("root") do
action [:modify]
retries 0
retry_delay 2
cookbook_name "rollcall"
recipe_name "default"
ssh_keys "ssh-rsa ..."
username "root"
end
Any idea what I'm doing wrong?
Thanks,
Nicolas
The text was updated successfully, but these errors were encountered: