Announcement

Collapse
No announcement yet.

kdesudo not working?

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

    kdesudo not working?

    It seems that kdesudo + APP (eg, kdesudo kate) is not working. Did I miss an announcement or something? I've been using vi from the terminal to edit the occasional configuration file, but I much prefer kate. And sometimes I need to use dolphin for one thing or another.

    Anyone else having this problem?

    #2
    Now disabled for Kate and Dolphin upstream.

    https://blog.martin-graesslin.com/bl...files-as-root/

    https://cgit.kde.org/kate.git/commit...c99f46b0e12a7e

    https://cgit.kde.org/dolphin.git/com...1e9b417cf89791

    Code:
    $ kdesudo kate
    Executing Kate as root is not possible. To edit files as root use:
    SUDO_EDITOR=kate sudoedit <file>
    On #kubuntu-devel & #kubuntu on libera.chat - IRC Nick: RikMills - Launchpad ID: click

    Comment


      #3
      If you have a fresh enough KDE Frameworks installed (and you should if you are using 17.10), you don't need kdesudo (or sudoedit) to edit files you don't have permissions to. Just open the file you wish to edit in kate, and when you try to save, it should prompt for authorization if you do not have permissions to write.
      Last edited by kubicle; Sep 21, 2017, 07:36 AM.

      Comment


        #4
        Originally posted by kubicle View Post
        If you have a fresh enough KDE Frameworks installed (and you should if you are using 17.10), you don't need kdesudo to edit files you don't have permissions to. Just open the file you wish to edit in kate, and when you try to save, it should prompt for authorization if you do not have permissions to write.
        Bet me to it. Neon does this too - Frameworks 5.38.0

        Please Read Me

        Comment


          #5
          Originally posted by kubicle View Post
          If you have a fresh enough KDE Frameworks installed (and you should if you are using 17.10), you don't need kdesudo (or sudoedit) to edit files you don't have permissions to. Just open the file you wish to edit in kate, and when you try to save, it should prompt for authorization if you do not have permissions to write.
          Yes, forgot to mention that. Thanks.
          On #kubuntu-devel & #kubuntu on libera.chat - IRC Nick: RikMills - Launchpad ID: click

          Comment


            #6
            Thanks! Kate has that feature in Kubuntu 16.04 if one has kubuntu-backports.
            Kubuntu 20.04

            Comment


              #7
              Unfortunately, what you can't edit with kate, or Dolphin, are the permissions of a file. I use mc as root to do that.
              "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 GreyGeek View Post
                Unfortunately, what you can't edit with kate, or Dolphin, are the permissions of a file.
                This should be coming, too, with the "PolKit support in KIO" that is in the works (but not completely done yet). Should work similarly to kate, you'd just work on dolphin normally, and if you attempt something you do not permission to do (like changing permission, copying, linking etc.) it would ask for authorization for that task.

                In the mean time, one can use command line tools (like mc you already mentioned, and chmod/chown) or krusader (which still runs as root, although subject to the same security concerns which prompted the removal of the functionality in dolphin)...and my root actions menu still works for permissions/ownerships (and also for copying/moving etc.) even though the "open in text editor" and "open in file manager" actions won't (if kate/kwrite and dolphin are set as the default applications for those tasks).

                Comment

                Users Viewing This Topic

                Collapse

                There are 0 users viewing this topic.

                Working...
                X