From owner-freebsd-stable@FreeBSD.ORG Mon May 24 18:20:53 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D2F3106566B for ; Mon, 24 May 2010 18:20:53 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout025.mac.com (asmtpout025.mac.com [17.148.16.100]) by mx1.freebsd.org (Postfix) with ESMTP id 549558FC1C for ; Mon, 24 May 2010 18:20:53 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp025.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L2X00IG8SAS7N50@asmtp025.mac.com> for freebsd-stable@freebsd.org; Mon, 24 May 2010 11:20:52 -0700 (PDT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1005240114 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5,1.2.40,4.0.166 definitions=2010-05-24_02:2010-02-06, 2010-05-24, 2010-05-24 signatures=0 From: Chuck Swiger In-reply-to: Date: Mon, 24 May 2010 11:20:52 -0700 Message-id: <5C6C66F1-7FA3-4C1E-9A11-5AA5E1442F96@mac.com> References: To: Mikkel Skaerris X-Mailer: Apple Mail (2.1078) Cc: freebsd-stable@freebsd.org Subject: Re: Zpool scrub and not-root users X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2010 18:20:53 -0000 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 . 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