<br><br><div class="gmail_quote">On Wed, Jul 9, 2008 at 10:52 AM, Mário Gamito <<a href="mailto:gamito@gmail.com">gamito@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yes, I do.<br>
<div><div></div><div class="Wj3C7c"><br>
On Wed, Jul 9, 2008 at 3:24 PM, Tharun Kumar Allu <<a href="mailto:tharun.allu@gmail.com">tharun.allu@gmail.com</a>> wrote:<br>
><br>
><br>
> On Wed, Jul 9, 2008 at 9:19 AM, Mário Gamito <<a href="mailto:gamito@gmail.com">gamito@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I need to run /bin/mount and /sbin/mount.cifs commands as nobody user<br>
>> (it has (bin/bash shell).<br>
>><br>
>> So, I've edited /etc/sudoers and added:<br>
>><br>
>> Cmnd_Alias    CMD_MOUNT = /bin/mount<br>
>> Cmnd_Alias    CMD_CIFS ) = /sbin/mount.cifs<br>
>><br>
>> nobody           ALL = NOPASSWD: CMD_MOUNT<br>
>> nobody           ALL = NOPASSWD: CMD_CIFS<br>
>><br>
>> But when I run the command as nobody (in the shell), I get the error:<br>
>> "mount error 1 = Operation not permitted"<br>
>><br>
>> Any ideas ?<br>
>><br>
>> Any help would be appreciated.<br>
>><br>
>> Warm Regards,<br>
>> Mário Gamito<br>
>><br>
><br>
> May be it is a stupid question but did you execute the command with sudo in<br>
> logged in as user nobody<br>
><br>
> nobody@yourserver$ sudo /bin/mount[.cifs]<br>
></div></div></blockquote></div><br><br>Another stupid question are you editing /etc/sudoers using visudo? normally located at /usr/sbin/visudo<br>