[clug] Problem with sudo

Eyal Lebedinsky eyal at eyal.emu.id.au
Wed Jul 6 02:31:39 MDT 2011


And as it often repeats there, you should use 'visudo' rather than directly
edit the config file.

cheers

On 07/06/11 13:47, Alex Satrapa wrote:
> 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
>

-- 
Eyal Lebedinsky	(eyal at eyal.emu.id.au)


More information about the linux mailing list