Announcement

Collapse
No announcement yet.

Dolphin Root

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

  • acheron
    replied
    Originally posted by dequire View Post
    Well good news has come - The code to return kio-as-root functions has landed. Soon to be released in a distro near you.
    Landed for the 2nd time. Hope the patch set doesn't get reverted again like it did before!

    Leave a comment:


  • dequire
    replied
    Well good news has come - The code to return kio-as-root functions has landed. Soon to be released in a distro near you.

    The KIO patches that Chinmoy had been working on for his GSOC project, to support doing actions as root has been merged!

    Leave a comment:


  • kubicle
    replied
    Originally posted by Teunis View Post
    When I needed to edit fstab I found Konsole gave me this option:
    [CODE]SUDO_EDITOR=kate sudoedit fstab/CODE]
    It works
    It works (with editors, not with dolphin), but isn't necessary anymore. You can just run "kate /etc/fstab".

    Leave a comment:


  • Teunis
    replied
    When I needed to edit fstab I found Konsole gave me this option:

    [CODE]SUDO_EDITOR=kate sudoedit fstab/CODE]

    It works, haven't tried it with other applications.

    Leave a comment:


  • hallergard
    replied
    Thanks guys!

    Leave a comment:


  • dequire
    replied
    Originally posted by kubicle View Post
    Similar functionality is in the pipeline for file operations (for dolphin), but that has not been released yet.
    That's the jist of the thread. Glad to see it's coming (back)

    Leave a comment:


  • kubicle
    replied
    I am repeating myself, but with KDE Frameworks version 5.34+ (you can check your installed version with 'kf5-config --version') there is no root evocation needed to edit files you don't have permissions to edit.

    Just open a file normally with kate (or any other editor that uses KTextEditor from KDE Frameworks, like kwrite), edit and save...if you do not have permissions to write, you'll be prompted for authorization. This all happens automagically.

    Similar functionality is in the pipeline for file operations (for dolphin), but that has not been released yet.

    Leave a comment:


  • GreyGeek
    replied
    I edited the Dolphin Service settings and added the "sudoeditKate" service. Works for me.

    $ cat /usr/local/bin/sudoeditkate.sh
    #!/bin/sh

    export EDITOR=/usr/bin/kate
    export SUDO_ASKPASS=/usr/local/bin/sudoeditpass.sh
    sudoedit -A "$1"

    $ cat /usr/local/bin/sudoeditpass.sh
    #!/bin/sh
    kdialog --password 'sudoedit needs user (sudo) password to execute the kate'
    $ cat /usr/share/bash-completion/completions/sudoedit
    # bash completion for sudo(8) -*- shell-script -*-

    _sudo()
    {
    local cur prev words cword
    _init_completion || return

    local i mode=normal
    [[ $1 == *sudoedit ]] && mode=edit

    [[ $mode == normal ]] &&
    for (( i=1; i <= COMP_CWORD; i++ )); do
    if [[ ${COMP_WORDS[i]} != -* ]]; then
    local PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
    local root_command=${COMP_WORDS[i]}
    _command_offset $i
    return
    fi
    if [[ ${COMP_WORDS[i]} == -e ]]; then
    mode=edit
    break
    fi
    [[ ${COMP_WORDS[i]} == -@(u|U|g|C|p) ]] && ((i++))
    done

    case "$prev" in
    -u|-U)
    COMPREPLY=( $( compgen -u -- "$cur" ) )
    return
    ;;
    -g)
    COMPREPLY=( $( compgen -g -- "$cur" ) )
    return
    ;;
    -C|-p)
    # argument required but no completions available
    return
    ;;
    esac

    if [[ "$cur" == -* ]]; then
    COMPREPLY=( $( compgen -W '-A -b -C -E -e -g -H -h -i -K -k -L -l -ll
    -n -P -p -S -s -U -u -V -v' -- "$cur" ) )
    return
    fi
    if [[ $mode == edit ]]; then
    _filedir
    fi
    } && complete -F _sudo sudo sudoedit

    # ex: ts=4 sw=4 et filetype=sh

    Leave a comment:


  • vinnywright
    replied
    Originally posted by hallergard View Post
    +vinnywright where can I learn about this Kate edit root files?
    just open the one you want to edit with kate ,,,,edit it ,,,when you click save you will get a password prompt ,,enter your password ,,,,done

    VINNY

    Leave a comment:


  • hallergard
    replied
    +vinnywright where can I learn about this Kate edit root files?

    Leave a comment:


  • vinnywright
    replied
    I do believe that it is being worked on ,,,,that is implementing something like what was done for Kate to edit root files with an admin password , so all the things we like to do with a root Dolphin can be done with the password prompt .

    VINNY

    Leave a comment:


  • dequire
    replied
    Originally posted by oshunluvr View Post
    Didn't work that way here. Too bad, sounds like a good solution...
    So weird. I could have sworn it worked before. But, alas, it does not atm. It's very frustrating when philosophical reasoning keeps functionality suppressed which in turn hurts users. Sadly, Linux has not hit the critical mass yet for devs to worry about things like moving files on one's PC using a GUI. Although you'd have thought by 2017...

    Leave a comment:


  • oshunluvr
    replied
    Originally posted by dequire View Post
    No problem! Just make a text file in your home directory (inside Dolphin) and press [F3] to go to Split Screeen mode. Then, using Dolphin, move it to a directory using drag-and-drop somewhere in root directory [/] - [/temp] would be a good candidate. When you do so you will be prompted for your password. Then the move will be complete. Hope this helps.
    Didn't work that way here. Too bad, sounds like a good solution...

    Leave a comment:


  • hallergard
    replied
    Get red message: "Access denied. Could not write to."
    with both Dolphin 15.12.3 and 17.04.3

    Leave a comment:


  • vinnywright
    replied
    Originally posted by dequire View Post
    No problem! Just make a text file in your home directory (inside Dolphin) and press [F3] to go to Split Screeen mode. Then, using Dolphin, move it to a directory using drag-and-drop somewhere in root directory [/] - [/temp] would be a good candidate. When you do so you will be prompted for your password. Then the move will be complete. Hope this helps.
    O dose this work for you ?

    what ver of dolphin and on what system ?

    I can not do that ,,,but Kate will edit root files with a password prompt .

    Dolphin however will not create or copy to or remove from a root directory the user dose not have read/write permissions for !!

    /tmp is read/write for everyone

    VINNY
    Last edited by vinnywright; Oct 22, 2017, 07:32 PM.

    Leave a comment:

Users Viewing This Topic

Collapse

There are 0 users viewing this topic.

Working...
X