Knife loading error - successful authentication, but not allowed for this action

ERROR: You authenticated successfully to https:<chef_server_url> as <user> but you are not authorized for this action Response: missing create permission

I run the pretty basic bootstrap command for an instance of Windows AWS

knife bootstrap windows winrm....

The Chef server is currently running in place and is not hosted at this time. I also get the same error using a knife to try to create a new group. I SSH'd to the Chef server and confirmed that my user is specified at startup

sudo chef-server-ctl list-server-admins

so it looks like they gave me permissions to server admins. I also see the same errors when trying to view and create files through the web interface. I gather in circles almost all day trying to solve it without any luck

+4
source share
2 answers

, , . Chef:

sudo chef-server-ctl org-user-add <org> <user> --admin

- https://docs.chef.io/server_users.html

.

+3

server-admins , org/users, (, ) ACL . , , admins , .

+4

Source: https://habr.com/ru/post/1660872/


All Articles