The error 'Profile permission violation' means that your host_profile file - that is the configuration file for SAP Host Agent located in /usr/sap/host/exe/host_profile - is editable for another user than the rootuser.
In this case SAP Host Agent does not start for security reasons, because otherwise every local user within the operating system could manipulate the profile and get root permissions on your local system.
The correct permissions are as follows:
rw-r----- 1 root sapsys /usr/sap/hostctrl/exe/host_profile
By default, the host_profile file is created with the correct permissions during the installation of SAP Host Agent. Do not change these default permissions manually.
This comment has been removed by the author.
ReplyDeleteThank you
ReplyDeletewhat is the solution in this case.
ReplyDelete[ERROR] /usr/sap/hostctrl/exe/saphostexec pf=/usr/sap/hostctrl/exe/host_profile exit with status 255
[root@sapecd exe]# ./saphostexec -restart
-> Start /usr/sap/hostctrl/exe/saphostexec pf=/usr/sap/hostctrl/exe/host_profile <-
[ERROR] Profile permission violation. (/usr/sap/hostctrl/exe/host_profile)
Usage: saphostexec [OPTION] [pf=]
WHERE :
- path to the profile to be used.
by default host_profile in the executable directory.
OPTION:
-install : Install the agent
-upgrade [-archive SAPHOSTAGENT_ARCHIVE] : Upgrade the agent [from SAPHOSTAGENT archive]
-uninstall : Uninstall the agent
-restart : Start or Restart the agent
-stop : Stop a running agent
-status : return the status of the agent
-version : return a detailed version information