[Buildroot] Changing permission recursively

Matthew Weber matthew.weber at rockwellcollins.com
Thu Mar 12 12:41:00 UTC 2015


Angelo,

On Thu, Mar 12, 2015 at 4:08 AM, Angelo Compagnucci <
angelo.compagnucci at gmail.com> wrote:

> Deal All,
>
> I'm in the process of building a rootfs for a custom application and
> wondering the best way to change permissions recursively for a
> directory.
>
> What I'm trying to achieve is to add some files via an overlay, but
> files should have a specific owner/permission which should be read
> from the buildroot's users table.
>
> I cannot find something like that in the documentation. Instead, the
> documentation specifies how to add single files and change
> owner/permission accordingly.
>

I assume you've looked at building the a permissions table file which you
would add to your "System configuration -> Path to the permission tables"
config option (which uses makedev to apply the correc uid/gid and
permissions to files/folders).  However I do believe it requires you to
itemize out all items like you've mentioned.
(http://buildroot.uclibc.org/downloads/manual/manual.html#makedev-syntax)

Matt


> If I understand correctly, I should create a new user (if necessary)
> with a specific UDI/GID and than use a POST_INSTALL_TARGET to change
> permission using that UID/GID.
> Alternatively, I can use FOO_PERMISSIONS with a per file granularity.
>
> Is this correct?
>
> Thanks!
>
> Sincerely, Angelo
>
> --
> Profile: http://it.linkedin.com/in/compagnucciangelo
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150312/c2f6abc8/attachment.html>


More information about the buildroot mailing list