Hi, I need to run /bin/mount and /sbin/mount.cifs commands as nobody user (it has (bin/bash shell). So, I've edited /etc/sudoers and added: Cmnd_Alias CMD_MOUNT = /bin/mount Cmnd_Alias CMD_CIFS ) = /sbin/mount.cifs nobody ALL = NOPASSWD: CMD_MOUNT nobody ALL = NOPASSWD: CMD_CIFS But when I run the command as nobody (in the shell), I get the error: "mount error 1 = Operation not permitted" Any ideas ? Any help would be appreciated. Warm Regards, M?rio Gamito
On Wed, Jul 9, 2008 at 9:19 AM, M?rio Gamito <gamito at gmail.com> wrote:> Hi, > > I need to run /bin/mount and /sbin/mount.cifs commands as nobody user > (it has (bin/bash shell). > > So, I've edited /etc/sudoers and added: > > Cmnd_Alias CMD_MOUNT = /bin/mount > Cmnd_Alias CMD_CIFS ) = /sbin/mount.cifs > > nobody ALL = NOPASSWD: CMD_MOUNT > nobody ALL = NOPASSWD: CMD_CIFS > > But when I run the command as nobody (in the shell), I get the error: > "mount error 1 = Operation not permitted" > > Any ideas ? > > Any help would be appreciated. > > Warm Regards, > M?rio Gamito > >May be it is a stupid question but did you execute the command with sudo in logged in as user nobody nobody at yourserver$ sudo /bin/mount[.cifs] -- Tharun Kumar Allu =============-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080709/d7cc090c/attachment-0002.html>
Yes, I do. On Wed, Jul 9, 2008 at 3:24 PM, Tharun Kumar Allu <tharun.allu at gmail.com> wrote:> > > On Wed, Jul 9, 2008 at 9:19 AM, M?rio Gamito <gamito at gmail.com> wrote: >> >> Hi, >> >> I need to run /bin/mount and /sbin/mount.cifs commands as nobody user >> (it has (bin/bash shell). >> >> So, I've edited /etc/sudoers and added: >> >> Cmnd_Alias CMD_MOUNT = /bin/mount >> Cmnd_Alias CMD_CIFS ) = /sbin/mount.cifs >> >> nobody ALL = NOPASSWD: CMD_MOUNT >> nobody ALL = NOPASSWD: CMD_CIFS >> >> But when I run the command as nobody (in the shell), I get the error: >> "mount error 1 = Operation not permitted" >> >> Any ideas ? >> >> Any help would be appreciated. >> >> Warm Regards, >> M?rio Gamito >> > > May be it is a stupid question but did you execute the command with sudo in > logged in as user nobody > > nobody at yourserver$ sudo /bin/mount[.cifs] > > -- > Tharun Kumar Allu > =============> _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >