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: Closed Works As Intended
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-24 16:07 UTC by Mateusz Piotrowski
Modified: 2020-09-30 07:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Piotrowski freebsd_committer freebsd_triage 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?

--------------------------------------------

Background
==========

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 freebsd_triage 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.
Comment 2 Mateusz Piotrowski freebsd_committer freebsd_triage 2020-09-30 07:30:08 UTC
Thanks!