kdesu kwrite

With the latest updates in Tumbleweed, the command does not work: kdesu kwrite, does it happen to you too?
Thank you so much

Yes. kwrite, kate and dolphin cannot be run as root any more since 17.04.0.
This is an upstream change, they check whether they are run as root and abort in this case.

See also this thread: Executing Dolphin as root is not possible. - Applications - openSUSE Forums

But fear not, we disabled this check in the openSUSE packages, the next update will allow this again for kate and kwrite as well.

Although be aware that running those applications as root is a huge security risk!
If you need to edit files owned by root you should better use sudoedit (as kwrite should tell you if you try to run it as root):

SUDO_EDITOR=kwrite sudoedit <file>

This runs kwrite as user, but still allows to edit/save a file owned by root.

Future KDE Frameworks releases of ktexteditor ask for the root password automatically if the file cannot be written, but we had to disable this because the security team doesn’t like it…

Ok I tried the command you suggested and within as root in the file to edit, as you are always a big thank you so much

Thanks
Today I updating system and woking kdesu kwrite
On does it hurt to security?

Yes, it is a security risk to run any GUI application as root.

And with kate/kwrite it’s even worse: you can just open a shell by pressing the F4 key.
An malicious application (running as user) could send fake keypresses to the Kate/kwrite window, thereby open a root shell and run arbitrary commands (as root).
See also Editing files as root – Martin's Blog and 'Exploiting dolphin/kate through Konsole on X11' - MARC

Ok Thank you