Can the Busybox init start a process as unprivileged user
1
vote
1
answer
639
views
I have a tiny, tiny system comprised of Busybox, an executable application and its dependent libraries ONLY. I am using the Busybox
/etc/inittab
to start the application as an unprivileged user:
::sysinit:/sbin/ifup -a -f
::respawn:/bin/busybox su unpriv-user -s /bin/sh -c 'my-executable --arg val --arg val'
The system has nothing else, and I don't want to install anything else. Is there a better way to instruct the Busybox inittab to start a process as a given user, or is using su
like I have the correct way to do this ?
Asked by starfry
(7710 rep)
Aug 28, 2020, 06:44 AM
Last activity: Aug 28, 2020, 11:08 AM
Last activity: Aug 28, 2020, 11:08 AM