From c44cb75ac461cf7ef81e47f0bbd9f395abdd5f1e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 17 Aug 2019 18:02:28 +0200 Subject: openvpn: T1548: widen generated folder permission to 755 --- src/conf_mode/interface-openvpn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3