diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-08-17 18:02:28 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-08-17 18:02:28 +0200 |
commit | c44cb75ac461cf7ef81e47f0bbd9f395abdd5f1e (patch) | |
tree | 070bddff5a14ff38f9c9e72842048f7bdbbbadeb /src | |
parent | fd339a3e45efea527e599fb430ccf538103b2369 (diff) | |
download | vyos-1x-c44cb75ac461cf7ef81e47f0bbd9f395abdd5f1e.tar.gz vyos-1x-c44cb75ac461cf7ef81e47f0bbd9f395abdd5f1e.zip |
openvpn: T1548: widen generated folder permission to 755
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interface-openvpn.py | 4 |
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) |