EM 12c: Agent Installation Fails With Error 'root dir is not owned by root user' (Doc ID 1380296.1)

Last updated on JUNE 01, 2016

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.1.0 and later
Information in this document applies to any platform.
Checked for relevance on 29-Jul-2013

Symptoms

Installing EM 12c Agent using the Response file fails as below:

$ ./agentDeploy.sh AGENT_BASE_DIR=/emcc/agent12c RESPONSE_FILE=/u01/agent12cStage/rac2_agent.rsp
AGENT_BASE_DIR=/emcc/agent12c

Validating the OMS_HOST & EM_UPLOAD_PORT
Executing command : /emcc/agent12c/core/12.1.0.1.0/jdk/bin/java -classpath /emcc/agent12c/core/12.1.0.1.0/jlib/agentInstaller.jar:/emcc/agent12c/core/12.1.0.1.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /emcc/agent12c/core/12.1.0.1.0 /u01/agent12cStage /emcc/agent12c -prereq

Validating oms host & port with url: http://vboddeti-pc.idc.oracle.com:4889/empbs/genwallet
Validating oms host & port with url: https://vboddeti-pc.idc.oracle.com:4889/empbs/genwallet
Return status:0
Unzipping the agentcoreimage.zip to /emcc/agent12c ....
12.1.0.1.0_PluginsOneoffs_226.zip
Executing command : /u01/agent12cStage/unzip -o /u01/agent12cStage/12.1.0.1.0_PluginsOneoffs_226.zip -d /emcc/agent12c

Checking the ownership of agent base directory:/emcc/agent12c
Checking for proper ownership on the agent base directory.
Checks whether the agent base directory is owned by the agent user oemgrid and that its parent directory is owned by either the agent user or root.
....
Login name is : oemgrid & file owner is : oemgrid
....
ERROR : root dir is not owned by root user.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms