Skip to content

Commit

Permalink
RANGER-2259 : Need to provide appropriate permisssions for unix-auth …
Browse files Browse the repository at this point in the history
…files.

Signed-off-by: Mehul Parikh <mehul@apache.org>
  • Loading branch information
Vishal Suvagia authored and mehulbparikh committed Oct 22, 2018
1 parent 81176a6 commit 2a46f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unixauthservice/scripts/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2a46f3c

Please sign in to comment.