When trying to install CA Client Automation agents while not using root account you get an error: ?User is not in the sudoers file. This incident will be reported?

book

Article ID: 40189

calendar_today

Updated On:

Products

CA Automation Suite for Data Centers - Configuration Automation CA Client Automation - Asset Management CA Client Automation - IT Client Manager CA Client Automation CA Client Automation - Remote Control CA Client Automation - Asset Intelligence CA Client Automation - Desktop Migration Manager CA Client Automation - Patch Manager

Issue/Introduction

Symptoms:

When trying to install CA Client Automation R14 agents while not using root account you get an error:“User is not in the sudoers file. This incident will be reported”

 

Environment:                                    

Client Automation version 14.0

All Supported versions of UNIX

 

Cause:

This error is caused because the user running the sudo command while trying to install the CA Client Automation version R14.0 agents on UNIX is not listed in the /etc/sudoers file with sudo permissions. This document addresses same issue for with either a local install or an install done through the Deployment Wizard.

 

Resolution:

1.   Login as root user 

 

2.  Now you must run the visduo command to edit the /etc/sudoers file

a. Syntax for this command

visudo /etc/sudoers

  NOTE: The visudo command may not be installed by default on various UNIX versions and requires you to install the correct package. 

AIX 7.1 

http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/date.html

Solaris 11

http://www.oracle.com/us/solutions/sap/sudo-security-solaris-sap-wp-2183939.pdf

HP UNIX 

https://h20392.www2.hpe.com/portal/swdepot/index.do

MAC OSX

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/visudo.8.html

NOTE: If you are unsure which package you need please contact the Vendors Support for assistance.

 

3.   Scroll down to the section of the sudoers file with the heading

## Allow root to run any commands anywhere

root    ALL=(ALL)       ALL        

 

Direction for Inserting Text

To insert text in a line into the sudoers file:

Position the cursor where the new text should go.

Type i  (letter I to insert text)

Enter the new text.

Add the user:

joe ALL=(ALL)       ALL   NOTE: this is all that’s needed for local install if using deployment then omit this line and add next two lines:

Defaults:<user name> !requiretty

<user name> ALL=(ALL) NOPASSWD: ALL

 

4.   To save the edits you have made, and quit visudo:

Press <Esc>

Type the following keyboard combination to save the file and exit 

:wq!

Press <Return>.

Once this has been done now you are ready to reattempt the installation and you should not receive the Error user is not listed in sudoers file.

 

Additional Information:                          

 For more information on editing the sudoers file or which package to install to be able to run visudo please consult your UNIX vendor and the man pages on UNIX for  sudo , visudo and editing sudoers file.  
 There is additional information in the CA Client Automation R14 Implementation Guide which is located on the CA Support  website 

  http://docops.ca.com

  Choose product CA Client Automation R 14

  For a list of supported versions of UNIX for CA Client Automation please review the 

  Compatibility matrix at this link:

    https://support.ca.com/irj/portal/anonymous/phpsupcontent?contentID={5388D4CA-E235-4113-9EE5-CC5C038AB99E}

  Related Documents:

   TEC1004128

   TEC1645036

 

 

 

Environment

Release:
Component: BITCM