[opensuse-factory] Kate / Kwrite does not launch from Dolphin started in SuperUser mode
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
Op 21-05-17 om 08:06 schreef Sudhir Anand:
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?
The message is the workaround. that is the command you should use now instead of sudo kate. For background see: https://blog.martin-graesslin.com/blog/2017/02/editing-files-as-root/ Regards, Cor -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Il giorno Sun, 21 May 2017 09:33:55 +0200 Cor Blom <cornelis@solcon.nl> ha scritto:
The message is the workaround. that is the command you should use now instead of sudo kate.
For the record, we have reverted this change IIRC, and should be landing sometime soon in Tumbleweed. -- Luca Beltrame - KDE Forums team GPG key ID: A29D259B
On Sun, 2017-05-21 at 09:52 +0200, Luca Beltrame wrote:
Il giorno Sun, 21 May 2017 09:33:55 +0200 Cor Blom <cornelis@solcon.nl> ha scritto:
The message is the workaround. that is the command you should use now instead of sudo kate.
For the record, we have reverted this change IIRC, and should be landing sometime soon in Tumbleweed.
I hope you are right as I would like to use kate / kwrite from with Dolphin in SuperUser Mode. Regards. -- Sudhir Anand
The message is the workaround. that is the command you should use now instead of sudo kate.
For the record, we have reverted this change IIRC, and should be landing sometime soon in Tumbleweed.
Out of curiosity, what were the arguments behind the decision to revert the change? Was it because you considered the risk stated by Martin Gräßlin and others to be overestimated or a more practical decision about "giving back the power to users and let them decide"? (I'm asking because I see this as a kind of catch22: either you restrain what the user can do for the sake of security or you give the user the right to shoot him/herself in the foot, not really a good answer to that one...) Cheers, Pierre -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Sun, 2017-05-21 at 09:33 +0200, Cor Blom wrote:
Op 21-05-17 om 08:06 schreef Sudhir Anand:
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?
The message is the workaround. that is the command you should use now instead of sudo kate.
For background see:
https://blog.martin-graesslin.com/blog/2017/02/editing-files-as-root/
Regards,
Cor
Thank you for the link and information. I preferred the old style, in spite of the risk, which is minimal on my particular desktop. I will have to drop onto command prompt to issue the command if I want to use kate / kwrite, which is inconvenient and impractical. I used these editors to mostly edit configuration files and little else. Given this change, I will not be using either editor very much now. I will use gedit or leafpad to edit files instead. This change was unnecessary in my view. Just wish developers were more realistic at times. A better alternative would be to allow users to make a choice in the settings of the application. Regards -- Sudhir Anand N�����r��y隊Z)z{.���r�+�맲��r��z�^�ˬz��N�(�֜��^� ޭ隊Z)z{.���r�+��0�����Ǩ�
On 21/05/17 04:29 AM, Sudhir Anand wrote:
On Sun, 2017-05-21 at 09:33 +0200, Cor Blom wrote:
Op 21-05-17 om 08:06 schreef Sudhir Anand:
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?
The message is the workaround. that is the command you should use now instead of sudo kate.
For background see:
https://blog.martin-graesslin.com/blog/2017/02/editing-files-as-root/
Regards,
Cor
Thank you for the link and information.
I preferred the old style, in spite of the risk, which is minimal on my particular desktop. I will have to drop onto command prompt to issue the command if I want to use kate / kwrite, which is inconvenient and impractical. I used these editors to mostly edit configuration files and little else. Given this change, I will not be using either editor very much now.
I will use gedit or leafpad to edit files instead.
This change was unnecessary in my view. Just wish developers were more realistic at times. A better alternative would be to allow users to make a choice in the settings of the application.
Regards
I like using vim with vim-plugin-locateopen. It allows you to just type in the file name for editing. Example :LocateEdit grub -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2017-05-22 00:08, Roman Bysh wrote:
I like using vim with vim-plugin-locateopen. It allows you to just type in the file name for editing.
Example
:LocateEdit grub
But if we use a GUI browser such as Dolphin the obvious thing is to use a KDE editor, GUI style. One could use the browser in root mode or as plain user, then edit the file as root. - -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlkiEe8ACgkQja8UbcUWM1xgRQD+O5KNXZcLyWTtDtJinqPs9FdH 7YoAUYBdnAgnZN0djowA/izXZrDnaoreaYPjNW5DtrWGSfClQMopZYGhkL7zqHoI =iQlX -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 21/05/17 06:17 PM, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2017-05-22 00:08, Roman Bysh wrote:
I like using vim with vim-plugin-locateopen. It allows you to just type in the file name for editing.
Example
:LocateEdit grub
But if we use a GUI browser such as Dolphin the obvious thing is to use a KDE editor, GUI style.
One could use the browser in root mode or as plain user, then edit the file as root.
Yesiree. I use that with dolphin in super user mode. Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2017-05-22 00:35, Roman Bysh wrote:
On 21/05/17 06:17 PM, Carlos E. R. wrote:
On 2017-05-22 00:08, Roman Bysh wrote:
I like using vim with vim-plugin-locateopen. It allows you to just type in the file name for editing.
Example
:LocateEdit grub
But if we use a GUI browser such as Dolphin the obvious thing is to use a KDE editor, GUI style.
One could use the browser in root mode or as plain user, then edit the file as root.
Yesiree. I use that with dolphin in super user mode.
LOL :-)) - -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlkiGxQACgkQja8UbcUWM1x3eAD/Q1RG4cO5Y6TrljMYZ5xhfwpy 42RQNYLlf03eV2uV7+kA/jFYA0LUSnm9s9rEoofiRNnPielcAeIqlhpejVX8Eo16 =py7A -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
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. -- Jimmy -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 21/05/17 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.
Start Yast and run "update unconditionally" for kate and kwrite. Also add the kcm-servicemenu from the Extra repository. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
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? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
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
participants (7)
-
Carlos E. R.
-
Cor Blom
-
Jimmy Berry
-
Luca Beltrame
-
Pierre de Villemereuil
-
Roman Bysh
-
Sudhir Anand