From owner-freebsd-bugs Thu Jun 21 15:40: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F12F737B401 for ; Thu, 21 Jun 2001 15:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5LMe3m34044; Thu, 21 Jun 2001 15:40:03 -0700 (PDT) (envelope-from gnats) Date: Thu, 21 Jun 2001 15:40:03 -0700 (PDT) Message-Id: <200106212240.f5LMe3m34044@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Drew Derbyshire" Subject: Re: bin/28294: dump of vinum based file systems by device name fails Reply-To: "Drew Derbyshire" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/28294; it has been noted by GNATS. From: "Drew Derbyshire" To: , "Derbyshire, Drew" Cc: Subject: Re: bin/28294: dump of vinum based file systems by device name fails Date: Thu, 21 Jun 2001 18:36:42 -0400 The problem is in vinum itself -- it builds the volume device nodes wrong, with an owner group of wheel instead of operator. This prevents non-root members of operator from accessing the drives. Compare these device nodes for regular disk slices: crw-r----- 2 root operator 13, 0x0003000a Jun 16 23:47 /dev/da1s2 crw-r----- 2 root operator 13, 0x00030008 Jun 16 23:47 /dev/da1s2a crw-r----- 2 root operator 13, 0x00030009 Jun 16 23:47 /dev/da1s2b crw-r----- 2 root operator 13, 0x0003000a Jun 16 23:47 /dev/da1s2c crw-r----- 2 root operator 13, 0x0003000b Jun 16 23:47 /dev/da1s2d crw-r----- 2 root operator 13, 0x0003000c Jun 16 23:47 /dev/da1s2e crw-r----- 2 root operator 13, 0x0003000d Jun 16 23:47 /dev/da1s2f crw-r----- 2 root operator 13, 0x0003000e Jun 16 23:47 /dev/da1s2g crw-r----- 2 root operator 13, 0x0003000f Jun 16 23:47 /dev/da1s2h to the vinum subdirectory: crw------- 1 root wheel 91, 0x40000001 Jun 18 13:44 Control crw------- 1 root wheel 91, 0x40000002 Jun 18 13:44 control crw------- 1 root wheel 91, 0x40000000 Jun 18 13:44 controld drwxr-xr-x 2 root wheel 512 Jun 18 13:44 drive crw-r----- 1 root wheel 91, 2 Jun 18 13:44 export drwxr-xr-x 2 root wheel 512 Jun 18 13:44 plex crw-r----- 1 root wheel 91, 3 Jun 18 13:44 scratch drwxr-xr-x 2 root wheel 512 Jun 18 13:44 sd crw-r----- 1 root wheel 91, 1 Jun 18 13:44 usr crw-r----- 1 root wheel 91, 0 Jun 18 13:44 var drwxr-xr-x 6 root wheel 512 Jun 18 13:44 vol The scratch, usr, export, and var devices should all be owned by group operator. Note that because vinum attempts remake to the device nodes in /dev/vinum at every reboot, it's unclear if a simple chmod command would solve the issue for existing vinum volumes across reboots. -ahd- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message