Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a drive mounted on a Windows 7 64-bit machine from a VirtualBox Ubuntu VM via NFS. Whenever I try creating a folder from Windows, the folder is created with its executable bit set to false, rendering it non-navigable and non-writable unless I switch to Ubuntu and manually reset folder permissions.

This bars me from creating folders or using any version control software from Windows. Is there any way to enable setting x permissions on folders creating via NFS?

EDIT: adding info as suggested by jdebp:

I'm using the MS Services for Unix client to map the NFS drive to G:. The output of the nfsadmin client command on the client (thus forth known as my host Windows 7 machine) is:

Service 'NfsClnt' was not found.

I have the server set up on Ubuntu to treat anonymous mounts as uid=1000 and gid=1000 (my Ubuntu user's uid and gid) and the client is configured to have executable flags set in its umask.

When I create a file on the mounted share (either through Eclipse or from Windows Explorer, for instance), the permissions are correctly set:

-rw-rw-r--  1 klemen klemen    0 2011-07-05 09:46 test.txt

But when I create a directory (either from Eclipse, Windows Explorer or from the command line using mkdir), the directory is created without its executable flags:

drw-rw-r--  2 klemen klemen 4096 2011-07-05 09:42 test

My mount options are as follows:

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["                    <li><a href=\"//area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2016 Stack Exchange Inc; user contributions licensed under <a href=\"https://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2016.4.29.3525\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">Super User works best with JavaScript enabled<img src=\"http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif\" alt=\"\" class=\"dno\"></div>\r\n    </noscript>\r\n<script>va"], "copyright__copyright__copyright": ["rw-rw-r--  1 klemen klemen    0 2011-07-05 09:46 test.txt\n\nBut when I create a directory (either from Eclipse, Windows Explorer or from the command line using mkdir), the directory is created without its executable flags:\n\ndrw-rw-r--  2 klemen klemen 4096 2011-07-05 09:42 test\n\nMy mount options are as follows:\n\nshare|improve this question\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nBrowse other questions tagged or ask your own question."]}