ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Björn Busse (JIRA) <j...@apache.org>
Subject [jira] [Commented] (AMBARI-20324) Wrong permissions on /var/run/ambari-server when not running as root
Date Tue, 07 Mar 2017 11:59:37 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-20324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15899327#comment-15899327
] 

Björn Busse commented on AMBARI-20324:
--------------------------------------

It seems the directory gets created via
ambari/ambari-server/src/main/python/ambari_server/serverConfiguration.py:430:          os.makedirs(directory,
0755)
invoked by
ambari/ambari-server/src/main/python/ambari_server/serverConfiguration.py:384:    self.check_if_directories_writable([self.OUT_DIR,
self.PID_DIR])

By the time the (init-) process is still running as root. One possibility would be to chown()
the dir to the ambari-user after creation of that dir

> Wrong permissions on /var/run/ambari-server when not running as root
> --------------------------------------------------------------------
>
>                 Key: AMBARI-20324
>                 URL: https://issues.apache.org/jira/browse/AMBARI-20324
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.1
>            Reporter: Björn Busse
>
> /var/run/ambari-server has wrong permissions when not running as root.
> The user under which ambari-server is running (ambari-server.user) should own /var/run/ambari-server
> $ cat /etc/ambari-server/conf/ambari.properties | grep server.user
> ambari-server.user=ambari



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message