Hello everyone Im wondering if there is a way of allowing non-root users to perform a disk scrub using zpool scrub <pool>. I've been messing around with permissions, but no luck so far. Anyone got a clue? Skaerris
Hi-- On May 24, 2010, at 8:00 AM, Mikkel Skaerris wrote:> Im wondering if there is a way of allowing non-root users to perform a disk > scrub using zpool scrub <pool>. I've been messing around with permissions, > but no luck so far. Anyone got a clue?You can use the security/sudo port to allow non-root users to run specific commands. I'd imagine that running zpool scrub as root once a week via cron at some quiet time around Sat or Sun midnight would be a better idea then letting arbitrary users run this anytime... Regards, -- -Chuck
On 05/24/2010 06:00 PM, Mikkel Skaerris wrote:> Hello everyone > > Im wondering if there is a way of allowing non-root users to perform a disk > scrub using zpool scrub <pool>. I've been messing around with permissions, > but no luck so far. Anyone got a clue? > > Skaerrisi'm not sure, but my guess is that there isn't. scrubbing a pool can put a stress to your system. Especially if there is resilvering to be done. So even if there is a way, I'd suggest against it as a security measure. just my .02$
On Mon, May 24, 2010 at 05:00:03PM +0200, Mikkel Skaerris wrote:> Im wondering if there is a way of allowing non-root users to perform a disk > scrub using zpool scrub <pool>. I've been messing around with permissions, > but no luck so far. Anyone got a clue?One question: why? Followed by one answer: sudo. :-) -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |