I am on an embedded Linux system, and I have a script “test.sh” that is lauched by init.d in root mode. In fact, when I put the command “whoami” in this sript, after rebooting, when the script is launched, I see root.
I would like to know how to run this script in user mode. I specify that there is already a user named “user” on my system. I heard on the web that init.d only lauches the scripts in root mode, but I think solution exists. It’s to secure the system.
If someone has got an idea, thanks.
Ps: I work with Yocto project (zeus branch).