NFS mounted share not writable
Hi all
I mounted a NFS share from a vagrant VM to my local machine (OS X 10.10). All files and folders are writable with other editos, but as soon i open the folder as a project in PhpStorm 8.0.2, everything is marked as read-only without a chance to make them writable (PhpStorm's change read only flag option doesn't help).
What can i do, to make the project writable with PhpStorm?
Thanks for your help.
Please sign in to leave a comment.
Please see https://youtrack.jetbrains.com/issue/IDEA-128423
Thank you for the link. Unfortunately, it doesn't solved my issue.
1. My project root isn't located in the root of the mapped drive
2. If i mount share with smb, everything is fine
I am having the same issue. Here are the details:
phpStorm is running on Fedore 21
Project is on an NFS shared CentOS 6 VM directory (dev).
On dev the file had the following permissions:
From my workstation:
-rw-rw-r-- 1 emmett cpi_dev 5676 May 29 11:48 avatar.php
-rw-rw-r-- 1 emmett cpi_dev 1581 May 29 11:47 ckEditor.css
-rw-rw-r-- 1 nobody cpi_dev 440 May 29 11:47 ckToolbar.js
-rw-rw-r-- 1 emmett cpi_dev 3881 Jun 12 08:09 content.css
-rw-rw-r-- 1 nobody cpi_dev 875 May 29 11:47 cpi-form.js
-rw-rw-r-- 1 emmett cpi_dev 10310 Jun 12 08:09 cpi-form.php
From the VM:
-rw-rw-r-- 1 emmett cpi_dev 5676 May 29 11:48 avatar.php
-rw-rw-r-- 1 emmett cpi_dev 1581 May 29 11:47 ckEditor.css
-rw-rw-r-- 1 freddly cpi_dev 440 May 29 11:47 ckToolbar.js
-rw-rw-r-- 1 emmett cpi_dev 3881 Jun 12 08:09 content.css
-rw-rw-r-- 1 freddly cpi_dev 875 May 29 11:47 cpi-form.js
-rw-rw-r-- 1 emmett cpi_dev 10310 Jun 12 08:09 cpi-form.php
In this case the code is maintained by two programmers, both of which are members of the cpi_dev group on both the dev server and their own workstations. So they both have read/write access via the group write policy.
The problem here is that phpStorm treats the two files that are owned by the 'nobody' user as read only, even though they are group writable and my user belongs to the cpi-dev group. This is NFS4, so actual group ID values do not matter, as idmapd allows user/group names as long as the client and server have the same Domain value, which they do in our network.
phpStorm would not allow me to edit the two files owned by freddly (nobody) even though my user has group write privileges. When I changed the owner of those files to emmett on the dev server, I was then able to edit those files.
phpStorm should honor all file permissions as expected by remote access file systems. Not being able to edit files owned by someone else, yet are group writable, seriously hinders the development process when multiple developers need access to the development files
Note that the link in the other reply (https://youtrack.jetbrains.com/issue/IDEA-128423) does not apply here, as this is a pure Linux system. However, these might be related if the issue described in the link pertains to honoring valid CIFS group priviliges.
I agree this, it seems like a bug — SMB works fine, NFS — most files are read only. Project root is not on remote FS.