Repository: ranger
Updated Branches:
  refs/heads/ranger-1.1 3af1f59d5 -> b1a5798d7


RANGER-2259 : Need to provide appropriate permisssions for unix-auth files.

Signed-off-by: Mehul Parikh <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/b1a5798d
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/b1a5798d
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/b1a5798d

Branch: refs/heads/ranger-1.1
Commit: b1a5798d7f2548d5585a48608247782cac53966b
Parents: 3af1f59
Author: Vishal Suvagia <[email protected]>
Authored: Mon Oct 22 14:48:24 2018 +0530
Committer: Mehul Parikh <[email protected]>
Committed: Mon Oct 22 18:26:24 2018 +0530

----------------------------------------------------------------------
 unixauthservice/scripts/setup.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/b1a5798d/unixauthservice/scripts/setup.py
----------------------------------------------------------------------
diff --git a/unixauthservice/scripts/setup.py b/unixauthservice/scripts/setup.py
index e0c8c83..54297f4 100755
--- a/unixauthservice/scripts/setup.py
+++ b/unixauthservice/scripts/setup.py
@@ -551,14 +551,14 @@ def main():
 
     if isfile(nativeAuthProgramName):
         os.chown(nativeAuthProgramName, rootOwnerId, groupId)
-        os.chmod(nativeAuthProgramName, 04555)
+        os.chmod(nativeAuthProgramName, 0750)
     else:
         print "WARNING: Unix Authentication Program (%s) is not available for 
setting chmod(4550), chown(%s:%s) " % (
         nativeAuthProgramName, "root", groupName)
 
     if isfile(pamAuthProgramName):
         os.chown(pamAuthProgramName, rootOwnerId, groupId)
-        os.chmod(pamAuthProgramName, 04555)
+        os.chmod(pamAuthProgramName, 0750)
     else:
         print "WARNING: Unix Authentication Program (%s) is not available for 
setting chmod(4550), chown(%s:%s) " % (
         pamAuthProgramName, "root", groupName)

Reply via email to