chef-boneyard / opscode-pushy-client

Client API for Pushy
Apache License 2.0
12 stars 14 forks source link

User or client 'xinyuan' does not have access to that action on this server #106

Closed yanxinyuan closed 8 years ago

yanxinyuan commented 8 years ago

Platform = Centos 6 Push Job Server Version = 2.1.0 Push Job Client Version = 2.1.1 Chef Client Version = 12.13.37

When i installed my chef station, 'xinyuan' is my default user by using command "chef-server-ctl user-create" generated, and i can use command "knife node status" to check the nodes status, but after i use the below commands to create a new client and groups. knife client create rundeck-push-jobs knife group create pushy_job_readers knife group create pushy_job_writers knife group add client rundeck-push-jobs pushy_job_readers knife group add client rundeck-push-jobs pushy_job_writers

I can't use "knife node status" command any more, it always occurs the below error: [root@delta chef-repo]# knife node status ERROR: You authenticated successfully to https://delta.chef.server/organizations/delta as xinyuan but you are not authorized for this action Response: User or client 'xinyuan' does not have access to that action on this server.

yanxinyuan commented 8 years ago

after i executing below commands, this issue has gone. knife group add user xinyuan pushy_job_readers knife group add user xinyuan pushy_job_writers

which means at first the admin user can access push job action, but after you have created upper groups, the admin user can't access push job action any more, so you need to add the user to the groups.

scalp42 commented 5 years ago

thanks a lot for sharing the fix @yanxinyuan