use visudo!

This commit is contained in:
dg9vh 2016-11-24 16:03:43 +00:00
parent dd538d326f
commit e7b73a9f3b

View file

@ -1,11 +1,16 @@
# Switching Networks # Switching Networks
To make switching networks possible you have to fulfill following conditions: To make switching networks possible you have to fulfill following conditions:
1. add www-user to the sudoers file to be able to execute following commands: cp, killall, MMDVMHost 1. add www-user to the /etc/sudoers file to be able to execute following commands: cp, killall, MMDVMHost
You can do this for example with following line: You can do this for example with following line:
www-data ALL=(ALL) NOPASSWD: /bin/cp,/usr/local/bin/MMDVMHost,/usr/bin/killall,/sbin/halt,/sbin/reboot www-data ALL=(ALL) NOPASSWD: /bin/cp,/usr/local/bin/MMDVMHost,/usr/bin/killall,/sbin/halt,/sbin/reboot
HINT: PLEASE(!) only use visudo for editing the sudoers-file! This validates the file before writing it on the
hard-disk. Otherwise there is heavy danger to damange your sudo-system, if you got any error/typo within the line!
2. create two ini-files, one with the name DMRPLUS.ini and the other with the name BRANDMEISTER.ini within the same directory where your MMDVM.ini resists, that contains the configurations for the corresponding networks. 2. create two ini-files, one with the name DMRPLUS.ini and the other with the name BRANDMEISTER.ini within the same directory where your MMDVM.ini resists, that contains the configurations for the corresponding networks.
## Security Hint ## Security Hint