Name=Open in Krusader file manger as administratorįor some reason kdesu krusader doesn't work, and I have used the solution from here. To add a context menu in dolphin, create the folder ~/.local/share/kservices5/ServiceMenus and then do kate ~/.local/share/kservices5/ServiceMenus/filemanager_sktopĮxec=/usr/lib/kde4/libexec/kdesu krusader Under its Tools it has the "Root" option. I have found that Krusader (which I think in the past used to be installed by default in some KDE systems) can be easily installed, brings no dependencies in Kubuntu 18.04, and can be used as root. If you need one of those for some other purpose adding that one could be a good solution. The main file managers of other desktops can be used (Nautilus, Nemo, Caja, Thunar) but they do bring some dependencies. Install another file manger that doesn't have that limitation and that doesn't bring a lot of dependenciesĬreate an "Open as root" context menu in Dolphin for this other file manager. Not an answer, just a workaround for the purpose mentioned by the OP ( copying or deleting files). When it is ready the Dolphin will show the password query if needed. KDE Reddit - Dolphin root on KDE App 17.04 : īypass "Executing Dolphin as root is not possible" and Regain KDE Dolphin Root Privileges: Kate/9adcebd3c2e476c8a32e9b455cc99f46b0e12a7e which was written byĭisallow executing kate and kwrite as root on Linux: More: KDE Foruns - How to run Dolphin 18.08 as root with Kubuntu or KDE neon? - Įarlier - KDE Forums - How to run Dolphin as root?: įor the security reasons: Disallow executing Dolphin as root on Linux - ĭisallow executing Dolphin as root on Linux Basically a copy of commit pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dolphin Show a warning when running as the root user: ĭolphin 18.08.0 is using these changes and the Dolphin can be launched with the pkexec command as the administrative super user. Re-allow running Dolphin as the root user (but still not using sudo): You could edit the sources and disable the check. If you get into the habit of editing files as root the right way, you will reduce the possibility of making mistakes that may be very time consuming to correct.The Dolphin 17.04 or later has a check: if uid = 0 then show the "Executing Dolphin as root is not possible." and exit. Press the keyboard combination Ctrl+ X to exit nano. Press the keyboard combination Ctrl+ O and after that press Enter to save the file being edited. The only two nano keyboard shortcuts that you need to know are for WriteOut and Exit. The instructions for using nano editor are always found at the bottom of every page. Nano text editor is included in the default Ubuntu installation. While there are commands to run graphical applications as root, you are strongly advised to use nano text editor, which normally is run from the terminal, for editing files as root. To install Nautilus Admin in all currently supported versions of Ubuntu open the terminal and type: sudo apt install nautilus-admin Edit as Administrator: opens a file in a Gedit window running with administrator (root) privileges.Open as Administrator: opens a folder in a new Nautilus window running with administrator (root) privileges.Nautilus Admin ( nautilus-admin) is a simple Python extension for the Nautilus file manager that adds some administrative actions to the right-click menu: In addition to this gksu and gksudo don't work for starting graphical applications as root in Wayland in Ubuntu 17.10: Why don't gksu/gksudo work with Wayland? and the gksu package has been dropped from the default Ubuntu repositories in Ubuntu 18.04 and later. Running any graphical interface applications as root can result in file corruption, especially if the graphical interface application is a text editor. Xauth: file /root/.Xauthority does not exist On coming to command #3, I got this error export DISPLAY=:0.0 # use the value of DISPLAY you've seen 3 lines before.xauth merge ~alien/.Xauthority # use your own username here instead of "alien".sudo -i # or "su -" on older Slackwares.echo $DISPLAY # you'll be needing this value 3 lines below.I found this question with the same error but no solution Unable to launch gedit with sudo I need to have this capability to open files in Gedit as root. Using gksudo doesn't help either which returns Cannot open display:Īny help guys. Run 'gedit -help' to see a full list of available command line options. When I run sudo gedit /path/to/some/random/file I get the following error ** (gedit:6262): WARNING **: Command line `dbus-launch -autolaunch=7f8731869e1c690b8205727e0000000a -binary-syntax -close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |