Re: [yocto] running application in user mode instead of root #yocto

2022-05-30 Thread Anton Antonov
Hi, You can use start-stop-daemon command with "--chiud" parameter. Here is an example: https://git.yoctoproject.org/meta-security/tree/meta-parsec/recipes-parsec/parsec-service/files/parsec_init Cheers, Anton -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Rep

Re: [yocto] running application in user mode instead of root #yocto

2022-05-30 Thread mail2uvijay
any one has example bitbake script which runs the application by the user instead of root. When i start the application using startup scripts [init.d] its running with root user. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#57210): https://lists

Re: [yocto] running application in user mode instead of root #yocto

2021-04-27 Thread Alessandro Tagliapietra
I'm new to yocto as well but what we do is in our own custom image: inherit extrausers EXTRA_USERS_PARAMS = " useradd nodered" and then since we use systemd we've created our own service file that includes: User=nodered in the [service] block definition, so the executable is run using that user

Re: [yocto] running application in user mode instead of root #yocto

2021-04-27 Thread Yann Dirson
Hello, > I am trying to run my application in less privilege mode instead of root user. > As i am new to Yocto build could you please some one suggest on how to > configure my build environment to get user and run > my application with the user privileges at startup. You may be interested in ROO

[yocto] running application in user mode instead of root #yocto

2021-04-27 Thread mail2uvijay
Hi All, I am trying to run my application in less privilege mode instead of root user. As i am new to Yocto build could you please some one suggest on how to configure my build environment to get user and run my application with the user privileges at startup. Regards, Vijay -=-=-=-=-=-=-=-=-=-