[Buildroot] not quite out of the woods

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Mar 15 21:35:06 UTC 2012


Hello,

Le Thu, 15 Mar 2012 13:51:04 -0700,
Charles Krinke <charles.krinke at gmail.com> a écrit :

> In working through my vsftpd.conf issue, I checked files into svn, did
> an update, clean build and loaded onto the MPC8321 target.
> 
> But, .... now the files in /etc are now owned by "default" of the
> group "default" and not owned by "root" of the group "root".
> 
> Is there somewhere in device_table.txt or some other file that I need
> to change to ensure the owner and group of files added to /etc in
> skeleton are correct?

By default, all the files should be owned by root in the filesystem
image generated by Buildroot.

See the line

        echo "chown -R 0:0 $(TARGET_DIR)" >> $(FAKEROOT_SCRIPT)

in fs/common.mk.

You can further tweak the permissions and ownership with the device
table, but having files owned by root is definitely the default
behaviour. Can you post your complete build log somewhere (on some
pastebin site)?

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list