Is it possible to run gpart and newfs on file without root access (without mdconfig)?
Konstantin Belousov
kostikbel at gmail.com
Mon Jan 21 17:48:15 UTC 2013
On Mon, Jan 21, 2013 at 09:26:49PM +0400, Andrey V. Elsukov wrote:
> 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.
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*.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20130121/2ea75787/attachment.sig>
More information about the freebsd-geom
mailing list