From owner-freebsd-geom@FreeBSD.ORG Mon Jan 21 17:28:01 2013 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A6B6A9FE; Mon, 21 Jan 2013 17:28:01 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward20.mail.yandex.net (forward20.mail.yandex.net [IPv6:2a02:6b8:0:1402::5]) by mx1.freebsd.org (Postfix) with ESMTP id 5A95DD4; Mon, 21 Jan 2013 17:28:01 +0000 (UTC) Received: from smtp18.mail.yandex.net (smtp18.mail.yandex.net [95.108.252.18]) by forward20.mail.yandex.net (Yandex) with ESMTP id 0CFB91041B3A; Mon, 21 Jan 2013 21:28:00 +0400 (MSK) Received: from smtp18.mail.yandex.net (localhost [127.0.0.1]) by smtp18.mail.yandex.net (Yandex) with ESMTP id D782218A01D5; Mon, 21 Jan 2013 21:27:59 +0400 (MSK) Received: from v10-167-169.yandex.net (v10-167-169.yandex.net [84.201.167.169]) by smtp18.mail.yandex.net (nwsmtp/Yandex) with ESMTP id RxLuDeOH-RxL8S6mX; Mon, 21 Jan 2013 21:27:59 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1358789279; bh=cVVKnAg4JFWfk341onqJnKlVT0mtNFn0Kd6qrs4APhk=; 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=Pd1R1SJs+R98mDG/SbbMEg67BwfyFyTMK/tatccPUSXO0V0EByvSnYx1M94k8iNR4 OEbkkWbd3N/VVbB+Q47AgalDy6S5xWNLa0VdkIPDCXFL1PjqhgJD7OK6+svWOFopO2 V+sQmefa5iaktbUKR+qI+hZBGFEiWNJKEPWtqzBU= Message-ID: <50FD7A59.4010606@yandex.ru> Date: Mon, 21 Jan 2013 21:26:49 +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: lev@FreeBSD.org Subject: Re: Is it possible to run gpart and newfs on file without root access (without mdconfig)? References: <1839155364.20130119150146@serebryakov.spb.ru> In-Reply-To: <1839155364.20130119150146@serebryakov.spb.ru> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: 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:28:01 -0000 On 19.01.2013 15:01, Lev Serebryakov wrote: > Hello, Freebsd-geom. > > Patches to build and install world without root access will hit tree > in near future, and I wonder is it possible to build complete NanoBSD > image without root access? Now image is built via creating MD disk and > it needs root access anyway :( > Is here any way to create disk image (in file) without root access? > > 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. -- WBR, Andrey V. Elsukov