FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
145 views 1 comments
by anonymous
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 anonymous

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 anonymous
Hi,

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

Thanks,

S