Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-2386: dzdo (DirectAuthorize) reports 'command not found'

Centrify DirectControl ,  

12 April,16 at 11:31 AM

Question:
 
After setting up rights and roles in DirectManage Access Manager,  the command dzdo followed by the privileged command results in 'command not found'. From dzinfo output, privileged command is enabled for the zone and the user in question is added to the role.
 
For example: The command esxcfg-firewall was created as a privilege command with standard system path /usr/sbin with all other settings set as default. The user in question was added to the role that contained the privilege command. The command dzinfo username showed the role was in place. Why does "dzdo esxcfg-firewall show command not found.


 
Answer:
 
On the server, the command esxcfg-firewall is located in /usr/sbin and is available readily in the path for the root user but not for Centrify users.  This can be confirmed by typing which esxcfg-firewall and it will display /usr/sbin/esxcfg-firewall
 
If the command esxcfg-firewall is not available in the profile path for the Centrify user, DirectControl will throw the error command not found when dzdo esxcfg-firewall is executed. This is normal behavior. Centrify users will need to prefix the full path like dzdo esxcfg-firewall command or make it available in the profile path (.cshrc or .profile depending on the shell which Centrify user is using).
 
Note: esxcfg-firewall is not a Centrify command and was used as an example. This KB holds good for other privilege commands 'not found in the path'.

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.