summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interface-openvpn.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interface-openvpn.py b/src/conf_mode/interface-openvpn.py
index 1988dcdb1..0f1cebaad 100755
--- a/src/conf_mode/interface-openvpn.py
+++ b/src/conf_mode/interface-openvpn.py
@@ -305,8 +305,8 @@ def openvpn_mkdir(directory):
if not os.path.exists(directory):
os.mkdir(directory)
- # fix permissions
- os.chmod(directory, stat.S_IRWXU|stat.S_IRWXG|stat.S_IROTH)
+ # fix permissions - corresponds to mode 755
+ os.chmod(directory, stat.S_IRWXU|stat.S_IRGRP|stat.S_IXGRP|stat.S_IROTH|stat.S_IXOTH)
uid = pwd.getpwnam(user).pw_uid
gid = grp.getgrnam(group).gr_gid
os.chown(directory, uid, gid)