Subject: Re: admin/15840: "raidctl -s" useless when filesystem mounted
To: Frederick Bruckman <fredb@immanent.net>
From: Simon Burge <simonb@wasabisystems.com>
List: netbsd-bugs
Date: 03/10/2002 10:37:14
Frederick Bruckman wrote:
> In article <20020309000123.B172511119@www.netbsd.org>,
> anne@alcor.concordia.ca writes:
>
> > Make a RAID set, put a filesystem on it, mount the filesystem, and
> > try "raidctl -s" on the RAID device.
>
> Evidently, you need to be root, or else your user needs to have write
> privileges on /dev/raid0d. A similar situation exists with the CD ROM
> devices -- you need to have write privs just to get status. The defaults
> for such devices should probably be "g+w", at least.
raidctl should be changed so that operations that don't require
write access don't open the device with the write flag set. I
just tried changing the "O_RDWR" to "O_RDONLY" in raidctl.c and
now I can "raidctl -s" as a user with group operator on a mounted
device where the device is mode 640.
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD CDs, Support and Service: http://www.wasabisystems.com/