[Buildroot] Buildroot filesystem files' ownership

Leonid Leonid at a-k-a.net
Fri Sep 28 23:24:40 UTC 2007


Buildroot documentation claims that entire filesystem can be created
without root priviliges and this is true. However as a result all files
in filesystem, residing in TARGET_DIR (even device nodes) belongs to
USER, not to root. While trying to NFS into such filesystem, it doesn't
work (no console output). I have expected that files which must belong
to root will be "massaged" by fakeroot but this doesn't happen at least

When I change ownership of all files in the filesystem to root

sudo chown -Rf root.root .

NFS is working fine. Questions:

1) May be filesystem in the TARGET_DIR is not supposed to be used as
real target FS - one must use .ext, .jffs2,... images? Where I get
filesystem for NFS then?

2) What files in the filesystem MUST belong to root - I suspect my
changing all of them to root is overkill.



More information about the buildroot mailing list