Which user should use the embedded application?

We have a built-in linux product with an application that allows the user to change various settings through the menu system. These settings include IP address / DHCP and time.

Now we run this application as root, but this is incorrect, allowing the user to directly interact with the process running as root.

Which user should we use?

If itโ€™s not root, how can we solve the problems with rights?

EDIT: The product does not have a graphical user environment in the classic Gnome / KDE style. The indicated menu system is implemented on the LCD panel of the product itself.

+3
source share
5 answers

, root Linux.

, - VxWorks, .

+3

, : , - ? , ? root vs , -, root ..., , , , .

+2

, root. , - , , . .

+1

, GNOME.

1) , " ". , , .

2) gksu .

0

I would split the code into parts. Create a user for your interface code. You can call it an โ€œinterfaceโ€. Then ask him to call root using the daemon or sudo to actually make changes that require root. Restrict access so that only approved commands can be executed.

0
source

Source: https://habr.com/ru/post/1717928/


All Articles