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

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:


in the [service] block definition, so the executable is run using that user instead of root.

Extrausers docs are

An alternative you might look at is the useradd class which probably lets you set the users in your own recipe instead at image level

Join to automatically receive all group messages.