Originally posted by dequire
View Post
Announcement
Collapse
No announcement yet.
Dolphin Root
Collapse
This topic is closed.
X
X
-
Landed for the 2nd time. Hope the patch set doesn't get reverted again like it did before!
- Top
- Bottom
-
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!
- Top
- Bottom
Leave a comment:
-
It works (with editors, not with dolphin), but isn't necessary anymore. You can just run "kate /etc/fstab".Originally posted by Teunis View PostWhen I needed to edit fstab I found Konsole gave me this option:
[CODE]SUDO_EDITOR=kate sudoedit fstab/CODE]
It works
- Top
- Bottom
Leave a comment:
-
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.
- Top
- Bottom
Leave a comment:
-
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.
- Top
- Bottom
Leave a comment:
-
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
- Top
- Bottom
Leave a comment:
-
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 ,,,,doneOriginally posted by hallergard View Post+vinnywright where can I learn about this Kate edit root files?
VINNY
- Top
- Bottom
Leave a comment:
-
+vinnywright where can I learn about this Kate edit root files?
- Top
- Bottom
Leave a comment:
-
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
- Top
- Bottom
Leave a comment:
-
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...Originally posted by oshunluvr View PostDidn't work that way here. Too bad, sounds like a good solution...
- Top
- Bottom
Leave a comment:
-
Didn't work that way here. Too bad, sounds like a good solution...Originally posted by dequire View PostNo 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.
- Top
- Bottom
Leave a comment:
-
Get red message: "Access denied. Could not write to."
with both Dolphin 15.12.3 and 17.04.3
- Top
- Bottom
Leave a comment:
-
O dose this work for you ?Originally posted by dequire View PostNo 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.
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
VINNYLast edited by vinnywright; Oct 22, 2017, 07:32 PM.
- Top
- Bottom
Leave a comment:
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.
Leave a comment: