From owner-freebsd-geom@FreeBSD.ORG Mon Jan 21 17:51:14 2013 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4063F755; Mon, 21 Jan 2013 17:51:14 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward19.mail.yandex.net (forward19.mail.yandex.net [IPv6:2a02:6b8:0:1402::4]) by mx1.freebsd.org (Postfix) with ESMTP id C03981FE; Mon, 21 Jan 2013 17:51:13 +0000 (UTC) Received: from smtp17.mail.yandex.net (smtp17.mail.yandex.net [95.108.252.17]) by forward19.mail.yandex.net (Yandex) with ESMTP id 653F71120F35; Mon, 21 Jan 2013 21:51:12 +0400 (MSK) Received: from smtp17.mail.yandex.net (localhost [127.0.0.1]) by smtp17.mail.yandex.net (Yandex) with ESMTP id 283BA19002D9; Mon, 21 Jan 2013 21:51:12 +0400 (MSK) Received: from v10-167-169.yandex.net (v10-167-169.yandex.net [84.201.167.169]) by smtp17.mail.yandex.net (nwsmtp/Yandex) with ESMTP id pAKCqbXE-pBKCa1Tt; Mon, 21 Jan 2013 21:51:12 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1358790672; bh=V0qyzAp0+jC2wr2SadYj3/jePB2mqZbjq3DqdrbX7MM=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:X-Enigmail-Version:Content-Type: Content-Transfer-Encoding; b=AiU3FaxKUUNTafCHJY5gufWpF0CXSql72JwquXfhK43wXm51PqOrYqNV1vJxWXvfL nOgTS7Xiq4wJWK36/hXJq+hKKMileSYtSKnPYFXGf+hkpCtczesQ6yx39Vg6xDZjag +IP7wvknE770VV9r/gJrFCSLOyHkGwh0xmrbu2zM= Message-ID: <50FD7FC9.5000503@yandex.ru> Date: Mon, 21 Jan 2013 21:50:01 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Konstantin Belousov Subject: Re: Is it possible to run gpart and newfs on file without root access (without mdconfig)? References: <1839155364.20130119150146@serebryakov.spb.ru> <50FD7A59.4010606@yandex.ru> <20130121174811.GL2522@kib.kiev.ua> In-Reply-To: <20130121174811.GL2522@kib.kiev.ua> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: lev@FreeBSD.org, freebsd-geom@FreeBSD.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2013 17:51:14 -0000 On 21.01.2013 21:48, Konstantin Belousov wrote: >>> Yes, permissions fixup needs root access in any case, but it >>> could be done on first boot of created image, on target device, with >>> some rc kung-foo! >> >> # chmod g+rw /dev/mdctl >> # chmod g+rw /dev/geom.ctl >> >> And now the operators group can do what you want. > > Do the newly created devfs nodes for the md(4) and partitions on md(4) > somehow get g+rw afterwards ? I think the write access is needed to > /dev/mdN*. Yes, there is some devfs foo needed. But the easiest way is sudo :) -- WBR, Andrey V. Elsukov