0

I am on vagrant@homestead:~$ in terminal. vagrant user has the groups:

vagrant adm cdrom sudo dip www-data ...

I have mounted html folder from a remote server having nfs-kernel-server. I can read all files and subfolders of the html folder. html folder has posts sub-folder with permissions:

drwxrwxr-x www-data www-data        posts

vagrant user (a member of www-data group) can't create files in posts (www-data group has write permission). What is the problem?

3
  • Is it mounted read-only ? grep "\sro[\s,]" /proc/mounts
    – iamauser
    Feb 13, 2017 at 20:51
  • @iamauser it says tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0. But root can write.
    – horse
    Feb 13, 2017 at 20:58
  • @iamauser I moved the question here.
    – horse
    Feb 13, 2017 at 21:33

1 Answer 1

1

You may find that your NFS server is not honouring group access permissions. On Debian you need to enable it with the --manage-gids option for rpc.mountd. This can be done on the server by editing /etc/default/nfs-kernel-server and setting this option:

RPCMOUNTDOPTS="--manage-gids"
2
  • I will try this soon.
    – horse
    Feb 16, 2017 at 9:22
  • This line is already enabled. Another computer (not mine) can add files to the nfs-kernel-server. Vagrant is a virtual ubuntu in my development computer behind ADLS modem. Can this be the source of the problem?
    – horse
    Feb 18, 2017 at 7:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .