Date: Mon, 21 Jan 2013 19:48:11 +0200 From: Konstantin Belousov <kostikbel@gmail.com> To: "Andrey V. Elsukov" <bu7cher@yandex.ru> Cc: lev@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: Is it possible to run gpart and newfs on file without root access (without mdconfig)? Message-ID: <20130121174811.GL2522@kib.kiev.ua> In-Reply-To: <50FD7A59.4010606@yandex.ru> References: <1839155364.20130119150146@serebryakov.spb.ru> <50FD7A59.4010606@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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*. [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJQ/X9bAAoJEJDCuSvBvK1BY6sP/2MhfkKfvRGN6nnwk4DBWk7V Oydu0XpxW4DDggD1Cf2yaP3Uue6Bt9Ntt6rkolDMX+T3M8ePBzkosHiwprOtRboY m4v/wz+2L0agzZLsMzCtcYGrA4nR+0UfMrUbt5+JyEZ3HV5g5xZh3J3YzAUMxRcS E0yK7YtdIFDM7mIARYbwxTboAzldiPkhDQBvYmSvMNT9ox1iv15Dc5H4Si6F3Kcn w6jhiP+tWAw5tIFchV6vZaiNMbs6xQicV8RNg37H3utEPs7Qorvyt0ZxlDdHIMs+ mbsQnbawmVSDrX3eDRv3SgBXVvEf/iIvzP4hJmvZpPUlnI00QFbfzkCYh3QNN8Q6 jESRDEkwD4RVCzepzVIAeJpoQhfoOM3ssb2lj8VfgTMnh/ZovgLB+4a4tsYSl1I7 rn6d77Ru6MzLPy/FB2/IuPVhvWU9ZYwciPKDeQB1sHYQeuYXZ3+UFpE1kDvblQPo MGdntH2WYF0X7XAKekGtyXuWdRHFWvXEUSjjVZB7f1dUzd+AMczOsRmZdEiA+DpS T9zaZsd9pbnEEKWKosAYdJoc9q+ofD7MNvMRlY0dyCawLDmGzMm9dyhwUQ1cSKOc peuYkFeSszEYUocOxaY9L60nuMSynyIGsDSG784nI8ZJDh/c8BUW65lfivcIR7bC hHfPMwDlzC8cJFU5GrVj =1uDV -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130121174811.GL2522>
