summaryrefslogtreecommitdiff
path: root/src/conf_mode/interface-openvpn.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-17 18:02:28 +0200
committerChristian Poessinger <christian@poessinger.com>2019-08-17 18:02:28 +0200
commitc44cb75ac461cf7ef81e47f0bbd9f395abdd5f1e (patch)
tree070bddff5a14ff38f9c9e72842048f7bdbbbadeb /src/conf_mode/interface-openvpn.py
parentfd339a3e45efea527e599fb430ccf538103b2369 (diff)
downloadvyos-1x-c44cb75ac461cf7ef81e47f0bbd9f395abdd5f1e.tar.gz
vyos-1x-c44cb75ac461cf7ef81e47f0bbd9f395abdd5f1e.zip
openvpn: T1548: widen generated folder permission to 755
Diffstat (limited to 'src/conf_mode/interface-openvpn.py')
-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)