10456 questions

12462 answers

19387 comments

21897 members

0 votes
50 views 1 comments
by
Hi,

We are trying to generate a procd file to start a service automatically and put it in our firmware image. The issue when we try to do that is is that it requires some particular permissions to be executed on the target system, when we try to set the permissions  on the host system the permission are basically lost in the target. Is there any way we can set new permissions to a file and keep them when we create an image?

Thanks

1 Answer

0 votes
by

Hi,

File permissions can be set using Makefile of your package.

Here's an example of mwan3 Makefile where it sets executable(INSTALL_BIN) permissions to init script: 

Best answer
by
Hi,

Thanks a lot, although I solved this replacing the file, I believe this is the best solution.

Thanks,

S