[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setuid safe for df?



On Fri, Jan 30, 2009 at 11:59:57AM +1300, Richard Hector wrote:
> Hi all,
> 
> I'm having a problem at the moment with nagios monitoring of disk space.
> 
> When a filesystem is mounted in a directory that's inaccessible to the
> nagios user, df doesn't work for it.
> 
> Is df considered safe to be setuid?
> 
> Any other suggestions?

Use sudo?

Setup your /etc/sudoers so the nagios user can run df without a password, then
configure Nagios to use "sudo df" instead of just "df" (I'm just learning
Nagios myself, so I don't know how you might do the second part) 

Cheers,

-- 
Eric Gerlach, Network Administrator
Federation of Students
University of Waterloo
p: (519) 888-4567 x36329
e: egerlach@feds.uwaterloo.ca


Reply to: