-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invoke sudo only with -g root and not (implicitly) with -u root #6
Comments
this really depends on the system and what are your exact udev rules to setup /dev nodes. so you could instead write udev rule to add nagios user to have readonly access to the needed /dev node and omit sudo completely :) |
Well ok... so the let me propose amongst the following
|
Hi. I've had a look at the all new version 3.0... nice... Where can I change the code in 3.0, to add sudo parameters per raid-check? Thanks. |
it is not implemented. if it would, i had posted note here, or at least associated commit |
as for the original ticket, you may modify sudo rules, i am not sure how to solve this as i want check_raid to be automatic as possible. if you know which plugins work with filesystem permissions only (use /dev/ nodes, but no ioctl calls), then each check_raid plugin has |
if you still don't understand the code and wish to contribute, please paste here expected sudo rules and expected commands to be run. to get original sudo rules, invoke |
We use check_raid.pl as root on Solaris which has worked well, but when we upgraded to the latest version, it now says it can't find sudo. We don't need sudo and Solaris doesn't come stock with sudo. Is there a way around this? |
Create separate issue (or even PR) for your problem, don't hijack unrelated tickets. |
Hi.
For many check binaries, it may be possible to run them as normal user (the one invoking check_raid) but only the root group added.
For those for which this is known, I'd suggest to change:
This tightens things a bit more at least.
I tried it for sas2ircu and it seems to work there.
Cheers,
Chris.
The text was updated successfully, but these errors were encountered: