Re: [arch-general] Why is permission for /run/user/1000/gvfs denied for root?

2018-12-13 Thread Peter Nabbefeld



Am 13.12.18 um 11:56 schrieb Ralph Corderoy:

Hi Peter,


But I need it to access the filesystem of my Android phone!?
Or are there alternatives?

There seem to be lots.
https://wiki.archlinux.org/index.php/Android#Transferring_files
https://wiki.archlinux.org/index.php/Media_Transfer_Protocol

A user here just mount(8)s IIRC, using an fstab(5) entry.

I've just looked at these wiki articles. It seems, MTP is the protocoll 
interfacing the device, while GVFS is the file manager integration. My 
MTP-related packages are:


$ LANG=C pacman -Ss mtp | grep "\[inst" | grep -v libcddb
extra/gvfs-gphoto2 1.38.1-1 (gnome) [installed]
extra/gvfs-mtp 1.38.1-1 (gnome) [installed]
extra/libmtp 1.1.16-1 [installed]

GVFS is used by Gnome and obviously also by XFCE4 (with Thunar).

So, in my case, the architecture seems to be like this:

++
+ Thunar |
+---++
    |
    |
    v
++
+  GVFS  |
+---++
    |
    |
    v
++ +--+
+  MTP   +-->+ Android-Device  |
+---++ +--+


Re: [arch-general] Why is permission for /run/user/1000/gvfs denied for root?

2018-12-13 Thread Bennett Piater



>Perhaps there is something provided by
>e.g. KDE, that allows to access an Android filesystem.

I recommend Dolphin - or KDEConnect, which works outside of KDE. 
-- 
GPG fingerprint: 871F 1047 7DB3 DDED 5FC4 47B2 26C7 E577 EF96 7808


Re: [arch-general] Why is permission for /run/user/1000/gvfs denied for root?

2018-12-13 Thread Ralf Mardorf via arch-general
On Thu, 13 Dec 2018 11:47:44 +0100, Peter Nabbefeld wrote:
>But I need it to access the filesystem of my Android phone!? Or are 
>there alternatives?

I don't know. I'm using an iPad and share data with my Linux PC either
via email or by a Windows 7 guest running in Virtualbox. Since Windows
is a guest and gvfs isn't installed and IIRC the iPad's photo and video
folder could be accessed even without running iTunes, it must be
possible to access this folder directly via Linux without gvfs. However,
I need to run iTunes in the Windows guest, since I need access to audio
production apps' file sharing. Perhaps there is something provided by
e.g. KDE, that allows to access an Android filesystem.


Re: [arch-general] Why is permission for /run/user/1000/gvfs denied for root?

2018-12-13 Thread Ralph Corderoy
Hi Peter,

> But I need it to access the filesystem of my Android phone!?
> Or are there alternatives?

There seem to be lots.
https://wiki.archlinux.org/index.php/Android#Transferring_files
https://wiki.archlinux.org/index.php/Media_Transfer_Protocol

A user here just mount(8)s IIRC, using an fstab(5) entry.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy


Re: [arch-general] Why is permission for /run/user/1000/gvfs denied for root?

2018-12-13 Thread Bjoern Franke
Hi,


> 
> But I need it to access the filesystem of my Android phone!? Or are 
> there alternatives?
> 

Take a look here:

https://wiki.archlinux.org/index.php/Media_Transfer_Protocol

HTH
Bjoern


Re: [arch-general] Why is permission for /run/user/1000/gvfs denied for root?

2018-12-13 Thread Peter Nabbefeld




Am 13.12.18 um 11:40 schrieb Ralf Mardorf via arch-general:

On Thu, 13 Dec 2018 10:23:08 +, Ralph Corderoy wrote:

Because gvfs has been brain-damaged for over a decade and should be
nuked from orbit.

I replaced it by an empty dummy packages to fulfil hard dependencies,
that actually should be optional dependencies.

[root@archlinux moonstudio]# pacman -Qi gvfs | head -3
Name: gvfs
Version : 2013.08.18-1
Description : Dummy package
[root@archlinux moonstudio]# systemd-nspawn -q dpkg -l gvfs | grep ii
ii  gvfs   2016:07-13-moonstudio all  Dummy package

The reason for me to remove gvfs is, that it wakes up an external green
WD drive for no reason, so the drive spins up, right after it spins
down, after being idle for 30 minutes.


But I need it to access the filesystem of my Android phone!? Or are 
there alternatives?


Re: [arch-general] Why is permission for /run/user/1000/gvfs denied for root?

2018-12-13 Thread Ralf Mardorf via arch-general
On Thu, 13 Dec 2018 10:23:08 +, Ralph Corderoy wrote:
>Because gvfs has been brain-damaged for over a decade and should be
>nuked from orbit.

I replaced it by an empty dummy packages to fulfil hard dependencies,
that actually should be optional dependencies.

[root@archlinux moonstudio]# pacman -Qi gvfs | head -3
Name: gvfs
Version : 2013.08.18-1
Description : Dummy package
[root@archlinux moonstudio]# systemd-nspawn -q dpkg -l gvfs | grep ii
ii  gvfs   2016:07-13-moonstudio all  Dummy package

The reason for me to remove gvfs is, that it wakes up an external green
WD drive for no reason, so the drive spins up, right after it spins
down, after being idle for 30 minutes.


Re: [arch-general] Why is permission for /run/user/1000/gvfs denied for root?

2018-12-13 Thread Ralph Corderoy
Hi Peter,

> why can't I access the directory?
>
> $ sudo LANG=C ls -l /run/user/1000
> ls: cannot access '/run/user/1000/gvfs': Permission denied

Because gvfs has been brain-damaged for over a decade and should be
nuked from orbit.
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/227724

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy


[arch-general] Why is permission for /run/user/1000/gvfs denied for root?

2018-12-13 Thread Peter Nabbefeld



Hi,

why can't I access the directory?

$ sudo LANG=C ls -l /run/user/1000
ls: cannot access '/run/user/1000/gvfs': Permission denied
total 0
srw-rw-rw- 1 peter users   0 Dec 12 07:00 bus
drwx-- 3 peter users  60 Dec 12 07:12 dbus-1
drwx-- 2 peter users  60 Dec 13 07:50 dconf
drwx-- 2 peter users 140 Dec 12 07:00 gnupg
d? ? ? ?   ?    ? gvfs
drwx-- 2 peter users  60 Dec 12 07:13 keyring
drwxr-xr-x 2 peter users  60 Dec 12 07:00 p11-kit
drwx-- 2 peter users 100 Dec 12 07:12 pulse
drwxr-xr-x 2 peter users  80 Dec 12 07:00 systemd

First assumed this is just some mount point, and I cannot access it 
because I've not attached any device. But nothing changes, if I attach one.


So, why are there all those question marks? Should it be possible to 
have some "unknown users/groups" accessing parts of my system?


Kind regards

Peter