Date: Thu, 21 Jun 2001 15:40:03 -0700 (PDT) From: "Drew Derbyshire" <ahd@kew.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/28294: dump of vinum based file systems by device name fails Message-ID: <200106212240.f5LMe3m34044@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/28294; it has been noted by GNATS. From: "Drew Derbyshire" <ahd@kew.com> To: <freebsd-gnats-submit@FreeBSD.org>, "Derbyshire, Drew" <ahd@kew.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106212240.f5LMe3m34044>