LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sudoers and guarddog problems (https://www.linuxquestions.org/questions/linux-newbie-8/sudoers-and-guarddog-problems-572783/)

A89ion 07-27-2007 12:59 PM

sudoers and guarddog problems
 
i set up sudoers in the following way
--------------------------------
Host_Alias MIHOST=mybox

User_Alias USERS=user


Cmnd_Alias MOUNT=/usr/bin/mount

Cmnd_Alias SHUTDOWN=/usr/sbin/shutdown

Cmnd_Alias REBOOT=/usr/sbin/reboot

Cmnd_Alias HALT=/usr/sbin/halt


MIHOST USERS = NOPASSWD : MOUNT , SHUTDOWN , REBOOT , HALT

USERS MIHOST = NOPASSWD : MOUNT , SHUTDOWN , REBOOT , HALT


-------------------------------------

as user when i run sudo mount i receive the following message:
*/
Sorry, user user is not allowed to execute '/bin/mount' as root on mybox.
/*

also i installed guarddog and i put a symlink pointing to /etc/rc.firewall
in

/etc/rc.d/rc.firewall

but it seems that doesnot work


---------------


thanks

uselpa 07-27-2007 01:34 PM

Quote:

Originally Posted by A89ion
Cmnd_Alias MOUNT=/usr/bin/mount
Sorry, user user is not allowed to execute '/bin/mount' as root on mybox.

/bin/mount is different from /usr/bin/mount

uselpa 07-27-2007 01:35 PM

Quote:

Originally Posted by A89ion
also i installed guarddog and i put a symlink pointing to /etc/rc.firewall
in /etc/rc.d/rc.firewall but it seems that doesnot work

Which distro?

A89ion 07-28-2007 07:43 AM

slackware 12 and i will try with that path of mount

uselpa 07-28-2007 08:22 AM

I have the same config and it works. Make sure that /etc/rc.firewall is executable.
Code:

pu@slackw:/etc$ v rc.firewall
-rwx------ 1 root root 54875 2007-07-22 14:02 rc.firewall*
pu@slackw:/etc$ v rc.d/rc.firewall
lrwxrwxrwx 1 root root 14 2007-05-01 14:46 rc.d/rc.firewall -> ../rc.firewall*



All times are GMT -5. The time now is 09:57 AM.