On 2017-05-22 02:47 PM, Roman Bysh wrote:
On 2017-05-21 11:29 PM, Jimmy Berry wrote:
On Sunday, May 21, 2017 1:06:39 AM CDT Sudhir Anand wrote:
When dolphin is started in super user mode, it not possible to launch kate or kwrite. When a text file is highlighted and with a right click kate / kwrite is selected (as editor), there is no response. Leafpad and gedit work fine.
In a console, "sudo kate" does not work. There is a message SUDO_EDITOR=kate sudoedit <file>".
This is annoying as I like to use kate / kwrite to edit files as root when necessary. Is there a work around?
Regards
-- Sudhir Anand
Another way you can accomplish the same that resolves much of the issues discussed regarding launching super dolphin while also the niceties of having the user configured kate running is to access your own system using a kio wrapper. For example fish or sftp: sftp://root@0.0.0.0 and any files opened will launch in a non-root kate while still writing to root files.
Please disregard my answer. Kate and kwrite can no longer run as root. It’s not secure since malicious code (in another program for instance) may take advantage of an app opened as root and utilize it for executing a malicious operation especially when running the app when X11 is running.
This has been replaced by sudoedit. You'll have to read up on it.
You can still use sudo pico or nano.
I really like using vim while running konsole as root. Once you get used to it you will use it for editing files as root.
There is talk about using Polkit to access root file.
Any thoughts about using Polkit?
Check out this link on how to use sudoedit below: https://iwf1.com/meet-sudoedit-linux-tool-how-to-use-it-and-for-what-purpose... -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org