Date: Sat, 8 Jan 2005 16:33:14 +0100 From: "Simon L. Nielsen" <simon@FreeBSD.org> To: Emanuel Strobl <emanuel.strobl@gmx.net> Cc: freebsd-stable@freebsd.org Subject: Re: GMIRROR can be destroyed by ordinary users Message-ID: <20050108153313.GF13899@zaphod.nitro.dk> In-Reply-To: <200501081549.21317.emanuel.strobl@gmx.net> References: <200501081532.22911.emanuel.strobl@gmx.net> <20050108144117.GC13899@zaphod.nitro.dk> <200501081549.21317.emanuel.strobl@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On 2005.01.08 15:49:16 +0100, Emanuel Strobl wrote: > Am Samstag, 8. Januar 2005 15:41 schrieb Simon L. Nielsen: > > > > I think it's a big error that ordinary users can issue a 'gmirror > > > stop /dev/mirrir/sample' with success! > > > > Are you sure about that? I can't do it on my test system: > > > > [simon@trillian:~] gmirror stop /dev/mirror/sys0 > > Permission denied > > I'm quiet sure because I accidentally did it once, but unfortnately now I > don't have a test machine. The only "not so ordinary" about my user is that > it's in the group wheel. If you have a test machine, could you find out if > that's the error? My user was also in wheel so that should not be the problem. If your user is in operator it might be another matter though (new test): [simon@trillian:~] id uid=2000(simon) gid=2000(simon) groups=2000(simon), 0(wheel), 5(operator), 68(dialer) [simon@trillian:~] ll /dev/mirror/sys0 crw-r----- 1 root operator 233, 3 Jan 6 11:23 /dev/mirror/sys0 [simon@trillian:~] gmirror stop sys0 Cannot destroy device sys0 (error=16). [simon@trillian:~] gmirror stop -f sys0 <hang> I don't have a console on the system right now but I assume it got unhappy that I pulled the device under the file system :-). I'm not really sure it is expected that you can do that when being in the operator group. -- Simon L. Nielsen [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB3/05h9pcDSc1mlERAtgaAJ42Au7+Gs1ScRf7nW3utt/dTVd/qQCgqjBM 6cUQ7EruyDALTjQTbpXp0w0= =/bPS -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050108153313.GF13899>
