From owner-freebsd-current Thu Jan 30 15:17: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4138B37B401 for ; Thu, 30 Jan 2003 15:16:59 -0800 (PST) Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E0D143F43 for ; Thu, 30 Jan 2003 15:16:58 -0800 (PST) (envelope-from nectar@celabo.org) Received: from opus.celabo.org (opus.celabo.org [10.0.1.111]) by gw.nectar.cc (Postfix) with ESMTP id 134304; Thu, 30 Jan 2003 17:16:58 -0600 (CST) Received: by opus.celabo.org (Postfix, from userid 1001) id 9175759AC; Thu, 30 Jan 2003 17:15:01 -0600 (CST) Date: Thu, 30 Jan 2003 17:15:01 -0600 From: "Jacques A. Vidrine" To: Kirk McKusick Cc: Jun Kuriyama , Current , Robert Watson Subject: Re: dump -L and privilege Message-ID: <20030130231501.GB75768@opus.celabo.org> Mail-Followup-To: "Jacques A. Vidrine" , Kirk McKusick , Jun Kuriyama , Current , Robert Watson References: <7miswoocye.wl@black.imgsrc.co.jp> <200301300217.h0U2HVFL015158@beastie.mckusick.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200301300217.h0U2HVFL015158@beastie.mckusick.com> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jan 29, 2003 at 06:17:31PM -0800, Kirk McKusick wrote: Alternative 1 `usermount' > The first would be > to change the default for vfs.usermount == 1 and then have dump -L > create the snapshot in a directory owned by "operator" (or by > whatever user runs the dumps). Then the snapshot could be created, > used, and deleted by that user. Alternative 2 `/sbin/snapshot' > The other alternative would be to > create a setuid-to-root program that would take a snapshot and > chown it to the user that does dumps. This setuid program could > then be invoked by dump -L to create a snapshot for it. Despite a distaste for setuid executables, I think I'd prefer a simple /sbin/snapshot setuid program. Primarily, enabling `vfs.usermount' gives more privileges to more users than I'm comfortable with. Secondarily, /sbin/snapshot may be useful on its own. Cheers, -- Jacques A. Vidrine http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message