I don't see you using sudo anywhere... (that would be sudo /etc/init.d/ntpd start).
To avoid having to mess with entering passwords, it's probably best to make use of the NOPASSWD: option, e.g. something like (in /etc/sudoers):
apache localhost = NOPASSWD: /etc/init.d/ntpd
(see man sudoers for the details)
In reply to Re^3: Perl CGI ability to start linux services
by almut
in thread Perl CGI ability to start linux services
by iphony
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |