Advertisement

07.09.2008 at 06:21AM PDT, ID: 23550055
[x]
Attachment Details

Sudoers - allow user nobody to run mount and mount.cifs

Asked by angelsofgrace2006 in Linux, Linux Programming, Linux Administration

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 GamitoStart Free Trial
 
 
[+][-]07.09.2008 at 06:34AM PDT, ID: 21963361

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 06:42AM PDT, ID: 21963435

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 06:44AM PDT, ID: 21963456

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 06:55AM PDT, ID: 21963566

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 08:01AM PDT, ID: 21964393

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux, Linux Programming, Linux Administration
Sign Up Now!
Solution Provided By: wilhelm_voigt
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.09.2008 at 08:24AM PDT, ID: 21964689

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906