You can configure the Ambari Server to run as a non-root user.
During the ambari-server setup
process, when prompted to Customize user account for ambari-server daemon?
,
choose y
.
The setup process prompts you for the appropriate, non-root user to run the Ambari Server as; for example: ambari.
Note | |
---|---|
When running the Ambari Server as a non-root user, confirm that the /etc/login.defs file is readable by that user. The Ambari Server reads this file during startup to determine the minimum UID. A permission of 644 for /etc/login.defs is recommended. |