From mboxrd@z Thu Jan 1 00:00:00 1970 From: "nmaupu@excilys.com" Subject: Re: sudoers Date: Wed, 09 Jul 2008 15:56:35 +0200 Message-ID: <4874C393.7050606@excilys.com> References: <91df29a20807090619q525ef6cdj892f9f1a8caea2b0@mail.gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <91df29a20807090619q525ef6cdj892f9f1a8caea2b0@mail.gmail.com> Sender: linux-admin-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: linux-admin@vger.kernel.org M=E1rio Gamito a =E9crit : > 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 =3D /bin/mount > Cmnd_Alias CMD_CIFS ) =3D /sbin/mount.cifs > > nobody ALL =3D NOPASSWD: CMD_MOUNT > nobody ALL =3D NOPASSWD: CMD_CIFS > > But when I run the command as nobody (in the shell), I get the error: > "mount error 1 =3D Operation not permitted" > > Any ideas ? Error, sending to the list, I resend message for everybody : ----- Does mount point have nobody user/group permission ? sudo chown -R nobody:nobody /path/to/mount/point sudo mount -t cifs ... It is also possible to do that with user option directly in fstab which= =20 will not use root privileges to mount your fs. A+ NM -- To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html