Date: Thu, 16 Oct 2008 12:43:50 +0300 From: Ivailo Tanusheff <i.tanusheff@procreditbank.bg> To: Per olof Ljungmark <peo@intersonic.se> Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org Subject: Re: FreeBSD and Nagios - permissions Message-ID: <OF5B54AF84.4848958F-ONC22574E4.003551F3-C22574E4.0035737D@procreditbank.bg> In-Reply-To: <48F6EDF2.4070109@intersonic.se>
next in thread | previous in thread | raw e-mail | index | archive | help
I think the problem is with the permisions of the specific user. The way to get over it is to use sudo and configure it to allow the nagios user execute camcontrol. This way the line should be : sudo camcontrol inquiry da0 Regards, Ivailo Tanusheff Deputy Head of IT Department ProCredit Bank (Bulgaria) AD Per olof Ljungmark <peo@intersonic.se> Sent by: owner-freebsd-questions@freebsd.org 16.10.2008 10:52 To freebsd-questions@freebsd.org cc Subject FreeBSD and Nagios - permissions Hi, I'm implementing a shell script as a Nagios plugin to check the status of the ciss(4) driver. However, there is a permission problem that I am not sure about the best way to get around in FreeBSD (7-STABLE). The nrpe daemon that handles the script runs as the "nagios" user and the command needed is camcontrol: camcontrol inquiry da0 The nagios user does not have a shell by default in FreeBSD: nagios:*:181:181::0:0:Nagios pseudo-user:/var/spool/nagios:/usr/sbin/nologin so the script will obviously fail. I would assume there are several ways to get around this and would welcome "best practice" suggestions on how. Thanks, --per _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OF5B54AF84.4848958F-ONC22574E4.003551F3-C22574E4.0035737D>