summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/openvpn_simple_smb
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/tasks/openvpn_simple_smb')
-rw-r--r--kpov_judge/tasks/openvpn_simple_smb/task.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/kpov_judge/tasks/openvpn_simple_smb/task.py b/kpov_judge/tasks/openvpn_simple_smb/task.py
index e530bf0..edaeef7 100644
--- a/kpov_judge/tasks/openvpn_simple_smb/task.py
+++ b/kpov_judge/tasks/openvpn_simple_smb/task.py
@@ -305,8 +305,9 @@ iface tap0 inet static
templates['SimpleArbiterVPN'].write(
"/srv/smb/" + fname + '.txt',
kpov_random_helpers.fortune(r, 4096))
- templates['VPNClient1'].write("/home/student/" + keyfile, s)
- templates['VPNClient1'].chown("student", "student", "/home/student/" + keyfile)
+ templates['VPNClient1'].write("/home/student/" + keyfile, s)
+ # uid, gid (student = )
+ templates['VPNClient1'].chown(1000, 1000, "/home/student/" + keyfile)