I want to use a Raspberry Pi as kind of a kiosk display.
- I have a Raspberry Pi 4 with Raspbian (Buster) installed.
- I have 3 users (root, pi and "kiosk"). The user "kiosk" is no sudoer (and should never be).
- auto-login to GUI for user "kiosk" is in effect
- a webserver is running (Apache2)
I'm trying to get following to work: I want to display a certain web page based on certain conditions, which are determined by the webserver.
For example on event "ev_a", the browser should display site "site_a", while on event "ev_b" the browser should display site "site_b" (where "site_a" and "site_b" are both remote urls, so no control over them).
I assume it would work if I would execute chrome command as the user "kiosk", but I would have to give sudo rights to the web server (www-data), which I think is not a good idea.
So to put my goal in simple words: A different user should open a web page other than the user currently logged in to the GUI.
Is there any other (more elegant) way?