Is it possible to run gpart and newfs on file without root access (without mdconfig)?
Andrey V. Elsukov
bu7cher at yandex.ru
Mon Jan 21 17:28:01 UTC 2013
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
More information about the freebsd-geom
mailing list