Portál AbcLinuxu, 15. července 2025 23:24
system("sudo service dhcpd stop");, ale do logu mi to hodi chybu:
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these two things: #1) Respect the privacy of others. #2) Think before you type. Password:Bohuzel se v linuxu jeste tam moc neorientuju, tak budu vdecny za jakoukoliv radu. Diky
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
#
# Cmnd alias specification
Cmnd_Alias STOP = /bin/stop
Cmnd_Alias VPNSTART = /bin/vpnstart
Cmnd_Alias VPNSTOP = /bin/vpnstop
Cmnd_Alias ASTERISK = /usr/sbin/asterisk
#
# User privilege specification
root ALL=(ALL) ALL
#
www-data ALL = (ALL) NOPASSWD: STOP, VPNSTART, VPNSTOP, ASTERISK
#
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.