Management Agent installation fails on a target host with RedHat 7 cause an agent installation user does not have sufficient privileges.
RELATED

EM 13C AGENT DEPLOYMENT FAILS BECAUSE THE VISIBLEPW IS NOT SET THE SUDOERS FILE
EM 13C AGENT DEPLOYMENT FAILS ON REDHAT/OEL 7.X TARGET HOSTS

SYMPTOMS

EM 13c agent deployment crashes on the remote prerequisite checks

OMS Agent Installation Fails Because Installation User Does Not Have All Required Permisions

The error stack is

Prerequisite Check Name:
    Do you have the privileges to run as root using the Privilege Delegation tool?
    
Status:
    Warning
    
Error:
    The user "oracle" does not have the privileges to run commands as user "root" 
    using the Privilege Delegation tool "/usr/bin/sudo".
    
Recommendation:
    Ensure user "oracle" has privileges to run commands as user "root" using the Privilege Delegation tool 
    "/usr/bin/sudo". If the Privilege Delegation tool "/usr/bin/sudo" requires a terminal for execution over 
    ssh then set the "oracle.sysman.prov.agentpush.enablePty" property to true in the "*/agentpush.properties" 
    file, which is present on the OMS host. You can also ignore this warning and continue in which case the 
    root.sh, any preinstallation or postinstallation scripts specified with run as root enabled will not be 
    run and you have to run them manually after installation.
SOLUTION

Add an agent installation user (eg oracle) to the /etc/sudoers file and retry an agent deployment

## Before 
[oracle@dbpilot ~] egrep oracle /etc/sudoers
[oracle@dbpilot ~]

## Backup the sudoers file
[oracle@dbpilot ~] cp /etc/sudoers /etc/sudoers.orig.$(date +%d%b%y_%H%M%S)

## After
[oracle@dbpilot ~] egrep oracle /etc/sudoers
oracle  ALL=(ALL)       ALL
NOTE

When EM 13c agent is deployed successfully, restore the original /etc/sudoers file.

Written At
19 FEB 201910:00
Red Hat Release
7.x x64
Enterprise Manager
13.1.0.0.0 - 13.3.0.0.0