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-2869: dzdo message: "It can only run as user root, default to run as root"

Centrify DirectControl ,  

12 April,16 at 11:46 AM

Applies to: Centrify DirectControl 5.1

Question:

After deploying Centrify 2013/5.1, running dzdo -i from an account now produces the following message:

[chlewis@nbsrvadm-02v ~]$ dzdo -i
It can only run as user root, default to run as root
root@nbsrvadm-02v ~]#

On a Centrify 2012.2 server, no message is displayed:
[chlewis@swsrvcomp-02 ~]$ dzdo -i
root@swsrvcomp-02 ~]#


What is this new message and is there a way to disable it?

Answer:
This was an intentional change. Prior to Suite 2013, dzdo would always assume the "run as" is root if not specified (-u). 
It will be denied if such a right does not exist. 

If a user runs a dzdo command that can only match 1 pattern, but the command only run as user oraadm, then dzdo will fail. 

The command needs to be specified as:

dzdo -u oraadm <cmd>

Since this can only run as oraadm, why cannot it be assumed that the command will be run as that account?. 

In Suite 2013, dzdo has been changed to recognize that if the command pattern matches only 1 role, 1 right - such that there is no ambiguity of "run as", then it will just proceed to run <cmd> as what the rights specifies - but the user will be notified what the runas is (may not be root).

Note:
This message cannot be suppressed. 

There is no loss of functionality as command will still be executed.  

Workaround:
1) The "-u" flag can be used (specifying the username)
2) In the UI, add another "run as" user (for example, "test") to the command right (to introduce ambiguity).

Resolution:
This issue has been fixed in DirectControl version 5.1.1 - Suite 2013.2.

 

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