* Setting directories permissions
@ 2017-06-13 6:31 Oliver Graute
2017-06-13 12:16 ` Laurent Gauthier
0 siblings, 1 reply; 2+ messages in thread
From: Oliver Graute @ 2017-06-13 6:31 UTC (permalink / raw)
To: yocto
Hello List,
I try to define a directory permission for a folder to 0775 instead of
0755 in my recipe. But somewhere in the install and packaging process
this is overwritten.
in my receipe I do this:
do_install() {
install -m 0775 -d ${D}${sysconfdir}/folder1/folder2/
I expect this on the target:
root@box:/etc/folder1# ls -la
drwxrwxr-x 2 root webgrp 512 Jan 1 1970 folder2
but I get only this permissions:
root@box:/etc/folder1# ls -la
drwxr-xr-x 2 root webgrp 512 Jan 1 1970 folder2
I also tried to define it in the fs-perms.txt file. But this didn't work
either.
/etc/folder1/folder2 0775 root webgrp false - - -
some clue how to handle such directory permissions the yocto way?
Best Regards,
Oliver
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Setting directories permissions
2017-06-13 6:31 Setting directories permissions Oliver Graute
@ 2017-06-13 12:16 ` Laurent Gauthier
0 siblings, 0 replies; 2+ messages in thread
From: Laurent Gauthier @ 2017-06-13 12:16 UTC (permalink / raw)
To: yocto
Hi Oliver,
It is not not clear to me what the root cause of this could be... Is
this directory shared by several pacakages by any chance?
One trick I am using to figure out in which recipe/package a file or
directory is found is the following (from the build directory):
echo tmp*/work/*/*/*/packages-split/*/etc/folder1
This will give you all recipes and packages that might deliver the
/etc/folder1 directory...
One thing you might want to try is setting its permissions during the
post installation of the package which you can specifiy in your recipe
as follows:
pkg_postinst_${PN} () {
chmod 775 /etc/folder1
}
I hope this helps, Laurent.
On Tue, Jun 13, 2017 at 8:31 AM, Oliver Graute <oliver.graute@gmail.com> wrote:
> Hello List,
>
> I try to define a directory permission for a folder to 0775 instead of
> 0755 in my recipe. But somewhere in the install and packaging process
> this is overwritten.
>
> in my receipe I do this:
>
> do_install() {
> install -m 0775 -d ${D}${sysconfdir}/folder1/folder2/
>
>
> I expect this on the target:
>
> root@box:/etc/folder1# ls -la
> drwxrwxr-x 2 root webgrp 512 Jan 1 1970 folder2
>
> but I get only this permissions:
>
> root@box:/etc/folder1# ls -la
> drwxr-xr-x 2 root webgrp 512 Jan 1 1970 folder2
>
>
> I also tried to define it in the fs-perms.txt file. But this didn't work
> either.
>
> /etc/folder1/folder2 0775 root webgrp false - - -
>
> some clue how to handle such directory permissions the yocto way?
>
>
> Best Regards,
>
> Oliver
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
--
Laurent Gauthier
Phone: +33 630 483 429
http://soccasys.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-13 12:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-13 6:31 Setting directories permissions Oliver Graute
2017-06-13 12:16 ` Laurent Gauthier
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.