Re: GVFS with NFS: permission denied



Hi Julien,

gvfsd-nfs is based on libnfs, see "ROOT vs NON-ROOT" chapter:
https://github.com/sahlberg/libnfs/blob/master/README

You have to use "insecure" option for the exports in order to allow unprivileged ports, or add capability to use privileged ports for gvfsd-nfs, e.g.:
sudo setcap 'cap_net_bind_service=+ep' /usr/libexec/gvfsd-nfs

I hope it helps to you

2016-11-20 18:24 GMT+01:00 Julien Nicoulaud <julien nicoulaud gmail com>:

Hi all,

I'm using Arch Linux with GNOME 3.22, and I'm trying to access a NFS share with Nautilus, I installed gvfs-nfs and I'm trying to access it with this URL:

nfs://storm/mnt/data/videos

But I get a "permission denied" error.

With gvfs-mount:

$ gvfs-mount nfs://storm/mnt/data/videos
Error mounting location: Permission refus?e?: cet h?te est peut-?tre interdit ou un port privil?gi? est n?cessaire

("this host might be forbidden or a privileged port is necessary)

Mounting with "mount" works fine:

sudo mount -t nfs -o rw storm:/mnt/data/videos /tmp/storm

The exports on my server are:

$ cat /etc/exports
/mnt/data/ 192.168.1.0/16(ro,fsid=root,no_subtree_check,insecure)
/mnt/data/music 192.168.1.0/16(ro,no_subtree_check,nohide,insecure)
/mnt/data/videos 192.168.1.0/16(ro,no_subtree_check,nohide,insecure)
/mnt/data/downloads 192.168.1.0/16(ro,no_subtree_check,nohide,insecure)

This page mentions some debug variables, but I'm not sure where to put it, I'm not even sure which daemon is the GVFS one...

Any idea how to investigate this ?

Best regards,
Julien


_______________________________________________
gvfs-list mailing list
gvfs-list gnome org
https://mail.gnome.org/mailman/listinfo/gvfs-list




--
Regards

Ondrej


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]