Browse Source

AMBARI-1869. Permission on agent site.pp files needs to be 660. (swagle)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1466735 13f79535-47bb-0310-9956-ffa450edef68
Siddharth Wagle 12 years ago
parent
commit
c49f57dc88
2 changed files with 3 additions and 2 deletions
  1. 2 0
      CHANGES.txt
  2. 1 2
      ambari-agent/src/main/python/ambari_agent/manifestGenerator.py

+ 2 - 0
CHANGES.txt

@@ -681,6 +681,8 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-1869. Permission on agent site.pp files needs to be 660. (swagle)
+
  AMBARI-1867. Processing API requests takes too long. (swagle)
 
  AMBARI-1856. Queries for metrics to populate the dashboard graphs don't work

+ 1 - 2
ambari-agent/src/main/python/ambari_agent/manifestGenerator.py

@@ -27,7 +27,6 @@ from datetime import datetime
 import AmbariConfig
 import pprint
 import hostname
-import stat
 
 logger = logging.getLogger()
 
@@ -77,7 +76,7 @@ def generateManifest(parsedJson, fileName, modulesdir, ambariconfig):
   #writing manifest
   manifest = open(fileName, 'w')
   #Change mode to make site.pp files readable to owner and group only
-  os.chmod(fileName, stat.S_IRWXU)
+  os.chmod(fileName, 0660)
 
   #Check for Ambari Config and make sure you pick the right imports file