Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-04-10 09:29:41

mrpaul
Member
Registered: 2017-04-10
Posts: 3

Thunar: Running with gksudo, sftp doesn't work.

Hello all. 

gksudo thunar sftp://185.185.40.103 =

Failed to open "sftp://185.185.xx.xx".

Operation not supporrted.


It works fine as a normal user.  How should I connect as root to my server?

My ssh keys are working from the command line for both root and user.

Last edited by mrpaul (2017-04-10 10:18:50)

Offline

#2 2017-04-10 11:06:56

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,861

Re: Thunar: Running with gksudo, sftp doesn't work.

Hello and welcome.

Running it through gdb on my Arch system, I get:

GConf Error: Client failed to connect to the D-BUS daemon:
Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
GConf Error: Client failed to connect to the D-BUS daemon:
Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
Thunar: Failed to initialize Xfconf: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead

Thunar: Failed to open "sftp://192.168.1.254": Operation not supported

So the reason its not working is that it can't connect to the session dbus.

Running it via:

gksudo 'dbus-launch thunar sftp://192.168.1.254'

...works for me but I'm not sure if this is the best/correct way to access the session dbus.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#3 2017-04-10 11:20:27

Morbius1
Member
Registered: 2014-07-05
Posts: 17

Re: Thunar: Running with gksudo, sftp doesn't work.

mrpaul wrote:

How should I connect as root to my server?

thunar sftp://root@185.185.40.103

Offline

#4 2017-04-10 11:40:07

mrpaul
Member
Registered: 2017-04-10
Posts: 3

Re: Thunar: Running with gksudo, sftp doesn't work.

Thanks ToZ. that works.  How did you run it through gdb? whats the command?

@Morbius1 - didnt work for me.  my root has different ssh keys and i dont know how to tell thunar what key to use.

Offline

#5 2017-04-10 13:09:25

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,861

Re: Thunar: Running with gksudo, sftp doesn't work.

mrpaul wrote:

Thanks ToZ. that works.  How did you run it through gdb? whats the command?

If not already installed, install gdb.

gdb

GNU gdb (GDB) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".

(gdb) file gksudo thunar 

Reading symbols from gksudo...(no debugging symbols found)...done.
Reading symbols from thunar...done.

(gdb) run

...then I tried to connect to the sftp share and got those messages.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#6 2017-04-14 07:47:04

mrpaul
Member
Registered: 2017-04-10
Posts: 3

Re: Thunar: Running with gksudo, sftp doesn't work.

Just thought i'd acc my final solution.

Running gksudo 'dbus-launch thunar sftp://192.168.1.254' does not allow opening files in my editor.  Documents open empty.

In the end I used the same ssh key for my normal user as root.  Everthing then works fine using Morbius1's solution.

Offline

Board footer

Powered by FluxBB