[fix] Create a dedicated system user with proper sudo permissions.

Ref. #41.
This commit is contained in:
pitchum
2018-10-12 08:13:31 +02:00
committed by pitchum
parent 9d2bc631e5
commit 94bbcdb2db
6 changed files with 41 additions and 8 deletions

13
conf/sudoers.conf Normal file
View File

@@ -0,0 +1,13 @@
Cmnd_Alias VPNCLIENTTASKS = /bin/systemctl stop ynh-vpnclient, \
/bin/systemctl start ynh-vpnclient, \
/usr/local/bin/ynh-vpnclient *
Cmnd_Alias YUNOHOST = /usr/bin/yunohost app setting vpnclient *,\
/usr/bin/yunohost app info hotspot *
Cmnd_Alias HOTSPOT = /bin/systemctl stop ynh-hotspot,\
/bin/systemctl start ynh-hotspot,\
/usr/bin/yunohost app setting hotspot *
__VPNCLIENT_SYSUSER__ ALL = NOPASSWD: /bin/grep, VPNCLIENTTASKS, YUNOHOST, HOTSPOT