OTP57V Java User Reboot: OTP57V Java: User Reboot

Aus AE SYSTEME Support
Zur Navigation springen Zur Suche springen

OTP57V_Java_User_Reboot: OTP57V Java: User Reboot

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.