Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which user should the embedded application run as?

We have an embedded linux product with an application which lets the user change different settings through the menu system. These settings include IP address/DHCP and time.

We now run this application as root but this feels wrong, letting the user directly interact with a process run as root.

Which user should we use?

If not root, how do we accomplish the permission issues that arise?

EDIT: The product does not have a graphical user environment in the classical Gnome/KDE fashion. The menu system mentioned is implemented on an LCD panel on the product itself.

like image 326
anorm Avatar asked Jan 28 '26 14:01

anorm


1 Answers

If strict controls are applied to input, there is nothing wrong to run an embedded application as root on Linux.

Anyway, when the underlying OS is something like VxWorks, applications run with maximum privileges as well.

like image 56
mouviciel Avatar answered Jan 31 '26 07:01

mouviciel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!