Problem scenario
You have installed Chef on Ubuntu. You run this command:
sudo knife client list
You expect to see a list of Chef client nodes. But you see an error like this:
"ERROR: You authenticated successfully to https://<FQDN of Chef Server>/organizations/companynickname as <FQDN of Chef client node> but you are not authorized for this action
Response: missing read permission"
What do you do?
Solution
Run this command:
export EDITOR=vi
Next run this command (without the <> symbols):
knife node create <FQDN of Chef client node>
(You will enter vi text editor.) Hold shift and tap "z" twice to save the changes