Q: In our panel application we need to allow the user reboot/shutdown Linux system. I’ve noticed this choice in OTP/57V ConfigToolBB6.jar application. I know how to do it with sudo user or setuid root programs, but your method is unknown for me. Can you please describe it to me?
A: The official way is to configure and use sudo. setuid does not work for scripts in that Linux kernel.
We have a helper daemon that waits on a pipe for commands. The daemon runs as root and the Java application can send commands to that daemon.
Informationen rund um die Panel PC TRM926 und Operator Touch Panel OTP57V. Linux, Java, Phyton Gtk...
1 Beitrag • Seite 1 von 1