Page 1 of 1

Best way to kill a root process from a GUI?

Posted: Thu Apr 03, 2025 2:40 am
by dreamer
So I recently learned how to kill a root process from the terminal. This was because I couldn’t do it from a GUI. I tried xfce4-taskmanager, qps and lxtask. Neither of these task managers would launch with pkexec.

I tried to launch them from the terminal and got various error messages. They were related to either gtk or Qt. I also thought that maybe PolicyKit permission was missing. I remember using xfce4-taskmanager with “pkexec” or “su-to-root -X -c” in MX-21. This doesn’t work in MX-23.

It’s unfortunate that these task managers can’t elevate permission when needed just like the MX apps. I think Ksysguard was able to do it, but it is no longer in the repos. Stacer also seems to have trouble killing root processes (and it will be gone from Trixie it seems). I tried these apps mostly with systemd.

If someone knows how to kill root processes from a GUI in MX-23 I would be interested to know how to do it.

Re: Best way to kill a root process from a GUI?

Posted: Thu Apr 03, 2025 2:44 am
by Eadwine Rose
ctrl alt esc to make the skull, then clicking on the thing?

Dunno, haven't used that recently, so not a clue if it works on root things or not.

Re: Best way to kill a root process from a GUI?

Posted: Thu Apr 03, 2025 3:12 am
by dreamer
Most processes don't manifest themselves as windows. Also there needs to be elevated permission to kill a root process.

Re: Best way to kill a root process from a GUI?

Posted: Thu Apr 03, 2025 5:00 am
by beardedragon
dreamer wrote: Thu Apr 03, 2025 2:40 am So I recently learned how to kill a root process from the terminal. This was because I couldn’t do it from a GUI. I tried xfce4-taskmanager, qps and lxtask. Neither of these task managers would launch with pkexec.

I tried to launch them from the terminal and got various error messages. They were related to either gtk or Qt. I also thought that maybe PolicyKit permission was missing. I remember using xfce4-taskmanager with “pkexec” or “su-to-root -X -c” in MX-21. This doesn’t work in MX-23.

It’s unfortunate that these task managers can’t elevate permission when needed just like the MX apps. I think Ksysguard was able to do it, but it is no longer in the repos. Stacer also seems to have trouble killing root processes (and it will be gone from Trixie it seems). I tried these apps mostly with systemd.

If someone knows how to kill root processes from a GUI in MX-23 I would be interested to know how to do it.
Right click Task Manager / Edit Application / Run in Terminal

Re: Best way to kill a root process from a GUI?  [Solved]

Posted: Thu Apr 03, 2025 6:23 am
by dreamer
Ok, I found/remembered MX Service Manager... It seems to work great for exactly this purpose!
I feel sorry for Linux users without the MX tools. I also own a paid tool that can do this, but that one also temporarily disappeared from my mind. I was too focused on finding a “task manager” which is basically another word for a service or process manager.