[Buildroot] question on setting file ownership after boot

Robert Smigielski ptdropper at gmail.com
Fri Jun 30 20:27:56 UTC 2017


Thank you for the clarification.

Now that I thought about it some more my question really is why are a bunch
of directories and files owned by user dbus up on boot up? I'm trying to
find what causes that to happen so that I can change that to be user root.



On Jun 30, 2017 11:46 AM, "Arnout Vandecappelle" <arnout at mind.be> wrote:

>
>
> On 30-06-17 14:55, Robert Smigielski wrote:
> > Hi everyone
> >
> > I am making customization on my Buildroot created board support package.
> I know
> > there is some method that configures specific ownership of files in the
> various
> > file system directories on boot up. On this embedded board I want root
> to own
> > all the dbus files so I want to specifically set file and directory
> ownership
> > and group membership to root system wide. I cannot recall what file
> configures
> > that. I know that the file system/device_table.txt performs a similar
> function
> > for /dev/* files but what does so for files over in /etc and /usr and so
> on?
>
>  Indeed, system/device_table.txt performs that function for files and
> directories, while system/device_table_dev.txt does it for /dev/* device
> nodes.
> It is called "device_table.txt" for historical reasons, it is currently
> only
> used for permissions, not devices.
>
>  You can configure the file to use with the BR2_ROOTFS_DEVICE_TABLE option
> ("Path to the permission tables"). You probably want to add a second file
> to
> that (space-separated) with the things you want to change.
>
>  See [1] and [2] for details.
>
>  Regards,
>  Arnout
>
> [1] https://buildroot.org/manual.html#customize-device-permission
> [2] https://buildroot.org/manual.html#makedev-syntax
>
>
> --
> Arnout Vandecappelle                          arnout at mind be
> Senior Embedded Software Architect            +32-16-286500
> Essensium/Mind                                http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170630/199759e9/attachment-0002.html>


More information about the buildroot mailing list