Announcement

Collapse
No announcement yet.

Edit as Root menu entry

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Edit as Root menu entry

    OK, so an update tonight on my machine. Actually wanted to do some "tweaks" after that was done. Trying to edit some config files with kate as root no go, would not run. OK, used the menu entry Edit as Root. No go. So went to konsole to see if I get any error messages. Get the below? New feature of KDE or is this a "feature" that the MAUI developers introduced? Anyway to "undo" this?

    Code:
    :~$ kdesudo kate
    Executing Kate as root is not possible. To edit files as root use:
    SUDO_EDITOR=kate sudoedit <file>

    #2
    There was another thread about this: https://www.kubuntuforums.net/showthread.php?t=71347

    Might be helpful

    Comment


      #3
      Short

      KDE Applications 17.04 : https://www.kde.org/announcements/fu...n=17.04.0#kate -> https://cgit.kde.org/kate.git/commit...c99f46b0e12a7e :

      Disallow executing kate and kwrite as root on Linux ...
      but

      with the KDE Frameworks 5.34 or later the password is requested if needed. No need to start the kate/kwrite with the root rights: https://phabricator.kde.org/D4847 & https://phabricator.kde.org/D5394

      ...With this patch kate-part will try to save the document contents with elevated privileges in case the regular save failed. So that KAuth graphical prompt is presented to user...
      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #4
        Thanks to you both!!

        Comment


          #5
          Originally posted by MoonRise View Post
          Thanks to you both!!
          as you may gave noticed you cant launch dolphin as root ant more as well .

          Krusader will however

          VINNY
          i7 4core HT 8MB L3 2.9GHz
          16GB RAM
          Nvidia GTX 860M 4GB RAM 1152 cuda cores

          Comment


            #6
            I did but now another question. What is the future of the Root Actions service menu? Most of that is non-functional now. Loved being able to do what through the service menu but now have to go to command line to do all of that. Kind of tedious.

            Comment


              #7
              I use sudoedit, which adds a service menu to Dolphin titled "sudoedit with kate".

              https://www.kubuntuforums.net/showth...156#post399156
              Last edited by GreyGeek; Jul 13, 2017, 10:29 PM.
              "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
              – John F. Kennedy, February 26, 1962.

              Comment


                #8
                Originally posted by MoonRise View Post
                I did but now another question. What is the future of the Root Actions service menu? Most of that is non-functional now. Loved being able to do what through the service menu but now have to go to command line to do all of that. Kind of tedious.
                At least for editing files, you don't need to use the command line or a service menu with the latest Frameworks (KDE Neon, or Kubuntu 17.10, or 17.04+ppas maybe). Just open a file, and if it needs admin privileges it will ask for your password when saving. Same for creating new files, when saving to somewhere outside of your $HOME. You can't right-click to create a new file or folder there, however.

                Comment


                  #9
                  Thanks!

                  Comment

                  Working...
                  X