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-1202: Why am I getting "Sorry, user xxx is not allowed to execute 'xxx' as root on xxx"?

Centrify DirectAudit ,   Centrify DirectControl ,   Centrify Identity Service, Mac Edition ,  

12 April,16 at 11:13 AM

Applies to: Centrify DirectControl 4.2 and later on all platforms

Question:
Why am I getting the error "Sorry, user xxx is not allowed to execute 'xxx' as root on xxx"?

 

[fred.tho@rhe5-ny ~]$ dzdo /usr/share/centrifydc/kerberos/bin/klist -kt

Sorry, user fred.tho is not allowed to execute '/usr/share/centrifydc/kerberos/bin/klist -kt' as root on rhe5-ny.centrify.dt.


Answer:
The error depends on what has been chosen for the “Match path”. For example, if “Standard user path” is set, this means DirectAuthorize will check for the command “/usr/share/centrifydc/kerberos/bin/klist” in  /bin:/usr/bin:/usr /local/bin only and will fail to find it there.

You have two options to resolve the issue:
1) Choosing the specific path and using a wildcard * for the path, OR
2) Include directories for the user and system PATHs as well as paths to other commands, such as /usr/share/centrifydc/kerberos/bin

Example: /sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/share/centrifydc/bin:/usr/share/centrifydc/sbin:/usr/share/centrifydc/kerberos/bin

 

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