LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2007, 12:59 PM   #1
A89ion
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
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
 
Old 07-27-2007, 01:34 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
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
 
Old 07-27-2007, 01:35 PM   #3
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
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?
 
Old 07-28-2007, 07:43 AM   #4
A89ion
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Original Poster
Rep: Reputation: 0
slackware 12 and i will try with that path of mount
 
Old 07-28-2007, 08:22 AM   #5
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
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*
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM
GuardDog problems RadonicMan Linux - Software 3 09-07-2004 04:57 AM
Guarddog & nntp problems Jiawen Linux - Security 5 12-18-2003 04:42 PM
Problems using guarddog on mandrake 9.1 (I need a good firewall!!) calimer Linux - Software 1 07-15-2003 09:34 PM
rc.firewall and Guarddog-path problems? Allen614 Slackware 2 05-24-2003 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration