You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by bp...@apache.org on 2021/12/08 06:55:12 UTC
[ranger] branch master updated: RANGER-3484:Ranger usersync directory is being created as root owner
This is an automated email from the ASF dual-hosted git repository.
bpatel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new 0258fcf RANGER-3484:Ranger usersync directory is being created as root owner
0258fcf is described below
commit 0258fcf7ab25473b056fffc103840806c18fdcad
Author: Bhavik Patel <bh...@gmail.com>
AuthorDate: Tue Oct 19 12:11:10 2021 +0530
RANGER-3484:Ranger usersync directory is being created as root owner
---
unixauthservice/scripts/setup.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/unixauthservice/scripts/setup.py b/unixauthservice/scripts/setup.py
index 5e19ea1..3ac686f 100755
--- a/unixauthservice/scripts/setup.py
+++ b/unixauthservice/scripts/setup.py
@@ -504,7 +504,8 @@ def main():
os.chown(ugsyncLogFolderName, ownerId, groupId)
os.chown(rangerBaseDirName, ownerId, groupId)
os.chown(usersyncBaseDirFullName, ownerId, groupId)
-
+ os.chown(pid_dir_path, ownerId, groupId)
+ os.chmod(pid_dir_path, 0o755)
initializeInitD(ownerName)
#