<br><br><div class="gmail_quote">On Wed, Jul 9, 2008 at 9:19 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;">
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>
<font color="#888888">Mário Gamito<br>
<br>
</font></blockquote></div><br>May be it is a stupid question but did you execute the command with sudo in logged in as user nobody<br><br>nobody@yourserver$ sudo /bin/mount[.cifs]<br clear="all"><br>-- <br>Tharun Kumar Allu<br>
==============