Bug 231673 - Why does "make distrib-dirs" have to be run as root?
Summary: Why does "make distrib-dirs" have to be run as root?
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2018-09-24 16:07 UTC by Mateusz Piotrowski
Modified: 2018-09-24 17:02 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Piotrowski freebsd_committer 2018-09-24 16:07:20 UTC
Is there a reason why "make distrib-dirs" is not implemented in such a way that it could be run as a unprivileged user?



I'm doing kernel development and I'd like to use NFS to boot
my modified FreeBSD. I'm following this guide[1] and I collect my notes here[2]. 

[1]: https://oshogbo.vexillium.org/blog/28/
[2]: https://wiki.freebsd.org/MateuszPiotrowski/BootFreebsdFromNfs
Comment 1 Brooks Davis freebsd_committer 2018-09-24 17:02:58 UTC
It makes directories and sets their ownership.  You can always use -DNO_ROOT to avoid the ownership changes.