This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Run Dolphin as Root (Solved)

Tags: None
(comma "," separated)
User avatar
blue_bullet
Registered Member
Posts
87
Karma
0
OS

Run Dolphin as Root (Solved)

Sun Nov 08, 2020 11:18 pm
Topic was closed for some reason, but this solution no longer works. In Konsole:

Code: Select all
rob@sigma:~$ pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dolphin /
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/usr/bin/env' as the super user
Multiple identities can be used for authentication:
 1.  Rob Burness,,, (rob)
 2.  Nancy Burness,,, (nancy)
Choose identity to authenticate as (1-2): 1
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized

This incident has been reported.
rob@sigma:~$


Output from inxi -Fc:

Code: Select all
System:    Host: sigma Kernel: 5.4.0-52-generic x86_64 bits: 64 Desktop: KDE Plasma 5.20.2 Distro: KDE neon 20.04 5.20
Machine:   Type: Laptop System: ASUSTeK product: Strix 17 GL703GE v: 1.0 serial: <superuser/root required>
           Mobo: ASUSTeK model: GL703GE v: 1.0 serial: <superuser/root required> UEFI: American Megatrends v: GL703GE.318
           date: 07/19/2019
Battery:   ID-1: BAT1 charge: 46.6 Wh condition: 46.6/64.4 Wh (72%)
CPU:       Topology: 6-Core model: Intel Core i7-8750H bits: 64 type: MT MCP L2 cache: 9216 KiB
           Speed: 3773 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 3988 2: 3970 3: 4000 4: 4002 5: 4001 6: 3954 7: 3999
           8: 4001 9: 4000 10: 3981 11: 3993 12: 4003
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
           Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile] driver: N/A
           Device-3: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo
           Display: x11 server: X.Org 1.20.8 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~120Hz
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.0.8
Audio:     Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel
           Sound Server: ALSA v: k5.4.0-52-generic
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi
           IF: wlo1 state: up mac: 94:b8:6d:2a:05:f8
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
           IF: enp2s0 state: down mac: 18:31:bf:97:1b:fd
Drives:    Local Storage: total: 1.14 TiB used: 107.92 GiB (9.2%)
           ID-1: /dev/sda vendor: Micron model: 1100 MTFDDAV256TBN size: 238.47 GiB
           ID-2: /dev/sdb vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB
Partition: ID-1: / size: 54.75 GiB used: 21.93 GiB (40.1%) fs: ext4 dev: /dev/sda5
           ID-2: /home size: 118.67 GiB used: 77.31 GiB (65.1%) fs: ext4 dev: /dev/sdb2
Swap:      ID-1: swap-1 type: partition size: 13.97 GiB used: 1.0 MiB (0.0%) dev: /dev/sdb3
Sensors:   System Temperatures: cpu: 87.0 C mobo: 27.8 C
           Fan Speeds (RPM): cpu: 0
Info:      Processes: 424 Uptime: 1h 33m Memory: 15.49 GiB used: 7.50 GiB (48.4%) Shell: bash inxi: 3.1.00


Last edited by blue_bullet on Wed Nov 25, 2020 10:51 pm, edited 1 time in total.


Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS

Re: Run Dolphin as Root

Sun Nov 08, 2020 11:44 pm
Works for me on both my Neon systems, not sure where to start troubleshooting this..


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
User avatar
blue_bullet
Registered Member
Posts
87
Karma
0
OS

Re: Run Dolphin as Root

Mon Nov 09, 2020 5:00 pm
claydoh wrote:Works for me on both my Neon systems, not sure where to start troubleshooting this..

Thanks for checking. I will play around with it and post a solution if I find one. I have never been queried on the admin user choice. So perhaps I am logged in differently than in the past.


Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
User avatar
blue_bullet
Registered Member
Posts
87
Karma
0
OS

Re: Run Dolphin as Root

Tue Nov 10, 2020 5:09 pm
blue_bullet wrote:
claydoh wrote:Works for me on both my Neon systems, not sure where to start troubleshooting this..

Thanks for checking. I will play around with it and post a solution if I find one. I have never been queried on the admin user choice. So perhaps I am logged in differently than in the past.

Works for me on 2 of my Neon systems but not on the 3rd. Its turns out the other admin user (my wife) on the 3rd system can run Dolphin as root, but I cannot. I tried "rdar" in Konsole, an alias built in my .bashrc to Run Dolphin As Root, as a follow-up and it worked fine for her.
It looks like this unresolved bug may be involved:
https://bugs.launchpad.net/ubuntu/+sour ... ug/1828663

Claydoh, you are right. This one could be a beast to troubleshoot. I will keep looking b/c every time I do this I learn (break) something. ;)


Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
User avatar
blue_bullet
Registered Member
Posts
87
Karma
0
OS

Re: Run Dolphin as Root (Solved)  Topic is solved

Wed Nov 25, 2020 10:45 pm
blue_bullet wrote:
blue_bullet wrote:
claydoh wrote:Works for me on both my Neon systems, not sure where to start troubleshooting this..

Thanks for checking. I will play around with it and post a solution if I find one. I have never been queried on the admin user choice. So perhaps I am logged in differently than in the past.

Works for me on 2 of my Neon systems but not on the 3rd. Its turns out the other admin user (my wife) on the 3rd system can run Dolphin as root, but I cannot. I tried "rdar" in Konsole, an alias built in my .bashrc to Run Dolphin As Root, as a follow-up and it worked fine for her.
It looks like this unresolved bug may be involved:
https://bugs.launchpad.net/ubuntu/+sour ... ug/1828663

Claydoh, you are right. This one could be a beast to troubleshoot. I will keep looking b/c every time I do this I learn (break) something. ;)


I discovered I could no longer mount my external hard drive at login on my desktop and found the solution to be issuing the following command from Konsole:
Code: Select all
sudo apt autoremove chrome-remote-desktop


Now I have regained admin privileges as well. I tripped upon the solution here:
https://askubuntu.com/questions/1199116/unable-to-access-external-hard-drive-not-authorized-to-perform-operation-u
See the first answer. That link and the additional link do not explain why chrome-remote-desktop is the problem, but that took care of it for me.


Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, mesutakcan, sandyvee, Sogou [Bot]