Repository: ambari Updated Branches: refs/heads/branch-1.7.0 e5c08c5b5 -> 08c03e373 refs/heads/trunk 482b7686c -> b0887b3fe
AMBARI-8080. On non-root server, client download configs fails. (aonishuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b0887b3f Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b0887b3f Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b0887b3f Branch: refs/heads/trunk Commit: b0887b3fe6e332a8efd6613c6aa1d35c4f34e74b Parents: 482b768 Author: Andrew Onishuk <aonis...@hortonworks.com> Authored: Fri Oct 31 21:47:07 2014 +0200 Committer: Andrew Onishuk <aonis...@hortonworks.com> Committed: Fri Oct 31 21:47:07 2014 +0200 ---------------------------------------------------------------------- ambari-agent/pom.xml | 2 ++ ambari-server/pom.xml | 9 +++++++++ ambari-server/src/main/python/ambari-server.py | 2 ++ 3 files changed, 13 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/b0887b3f/ambari-agent/pom.xml ---------------------------------------------------------------------- diff --git a/ambari-agent/pom.xml b/ambari-agent/pom.xml index 5400dad..9db343b 100644 --- a/ambari-agent/pom.xml +++ b/ambari-agent/pom.xml @@ -251,6 +251,7 @@ </mapping> <mapping> <directory>${jinja.install.dir}</directory> + <filemode>755</filemode> <username>root</username> <groupname>root</groupname> <sources> @@ -421,6 +422,7 @@ <prefix>${jinja.install.dir}</prefix> <user>root</user> <group>root</group> + <filemode>755</filemode> </mapper> </data> <data> http://git-wip-us.apache.org/repos/asf/ambari/blob/b0887b3f/ambari-server/pom.xml ---------------------------------------------------------------------- diff --git a/ambari-server/pom.xml b/ambari-server/pom.xml index 65e9663..4e7477e 100644 --- a/ambari-server/pom.xml +++ b/ambari-server/pom.xml @@ -291,6 +291,7 @@ </mapping> <mapping> <directory>${jinja.install.dir}</directory> + <filemode>755</filemode> <username>root</username> <groupname>root</groupname> <sources> @@ -431,6 +432,12 @@ </sources> </mapping> <mapping> + <directory>/var/lib/ambari-server/data/tmp</directory> + <filemode>755</filemode> + <username>root</username> + <groupname>root</groupname> + </mapping> + <mapping> <directory>/var/lib/ambari-server/resources/apps</directory> <filemode>755</filemode> <username>root</username> @@ -595,6 +602,7 @@ <path>/var/run/ambari-server/stack-recommendations</path> <path>/var/log/ambari-server</path> <path>/var/lib/ambari-server/resources/upgrade</path> + <path>/var/lib/ambari-server/data/tmp</path> </paths> </data> <!-- TODO: should be included all subdirs, if exists--> @@ -992,6 +1000,7 @@ <mapper> <type>perm</type> <prefix>${jinja.install.dir}</prefix> + <filemode>755</filemode> <user>root</user> <group>root</group> </mapper> http://git-wip-us.apache.org/repos/asf/ambari/blob/b0887b3f/ambari-server/src/main/python/ambari-server.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/python/ambari-server.py b/ambari-server/src/main/python/ambari-server.py index 0c5174f..b9eaae3 100755 --- a/ambari-server/src/main/python/ambari-server.py +++ b/ambari-server/src/main/python/ambari-server.py @@ -566,6 +566,8 @@ NR_ADJUST_OWNERSHIP_LIST = [ ("/etc/ambari-server/conf/ldap-password.dat", "640", "{0}", False), ("/var/run/ambari-server/stack-recommendations/", "644", "{0}", True), ("/var/run/ambari-server/stack-recommendations/", "755", "{0}", False), + ("/var/lib/ambari-server/data/tmp/", "644", "{0}", True), + ("/var/lib/ambari-server/data/tmp/", "755", "{0}", False), # Also, /etc/ambari-server/conf/password.dat # is generated later at store_password_file ]