OTP57V Java User Reboot: OTP57V Java: User Reboot: Unterschied zwischen den Versionen

Aus AE SYSTEME Support
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „<h1>OTP57V_Java_User_Reboot: OTP57V Java: User Reboot</h1> 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…“)
 
(kein Unterschied)

Aktuelle Version vom 27. Januar 2023, 14:48 Uhr

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.