By default, Ambari will run as root on your Ambari server. In many cases, running services as root is unacceptable, and potentially gaining root access (or root access via SSH) is not practical or permitted. In this type of scenario, we recommend using a user called "ambari" instead.
This user must have a UID > 1000, must have passwordless sudo access, and must be present on all servers in the Interset cluster.
To create the user - use the attached ambariUser.sh script. Note that this script is provided solely as an example and has no implicit support or guarantees with regard to functionality.
To configure Ambari to run as "ambari" instead of "root" -
- SSH to the Ambari node
- Run "ambari-server setup"
- When prompted for "Customize user account for ambari-server daemon [y/n] (n)?" enter "y"
- When prompted for "Enter user account for ambari-server daemon (root):" enter "ambari"
- Continue the configuration as per the Interset Installation & Configuration Guide.