[clug] Problem with sudo
Alex Satrapa
grail at goldweb.com.au
Tue Jul 5 21:47:49 MDT 2011
On 06/07/2011, at 13:44 , Alex Satrapa wrote:
> sudo asterisk -rx 'sip reload'
> -> Sorry, user grail is not allowed to execute 'asterisk -rx sip reload' as root on hostname
>
> sudo asterisk -rx 'sip\ reload'
> -> Sorry, user grail is not allowed to execute 'asterisk -rx sip\ reload' as root on hostname
Of course, having sent that I realised how to do it. In /etc/sudoers:
> Cmnd_Alias RELOAD_SIP = asterisk -rx sip\ reload
And then on the command line:
> sudo asterisk -rx sip\ reload
And thus the problem is solved. For the moment. The next step in my adventure is invoking that sudo command from a Perl script.
Alex
More information about the linux
mailing list