I cannot write to the mounted directory on wwwdev as root. I can of course access it from my mac.

I have mounted the directory

  • from my Mac Darwin Radeks-iMac.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 23:08:29 PST 2009; root:xnu-1486.2.11~3/RELEASE_I386 i386

  • to our server Linux wwwdev #1 SMP 2008-10-14 22:17:43 +0200 x86_64 x86_64 x86_64 GNU/Linux

mount give me this radek:/Users/radek/Sites on /srv/www/htdocs/imacs/radek type nfs (rw,addr=


click for better image quality here


  • not sure if it matters but we use automount.

  • copy from the output of mount command

radek:/Users/radek/Sites on /srv/www/htdocs/imacs/radek type nfs (rw,addr=

wei:/Users/wei/Sites on /srv/www/htdocs/imacs/wei type nfs (rw,addr=

  • sorry not to mention that every body else can write to somebody's else dir except mine. For example Wei's settings looks the same to me but I cannot write under my directory as root from wwwdev but I can under his directory – Radek Jul 15 '10 at 5:18

It looks like 'root_squash' is on on the NFS server. This is an option defined in /etc/exports that you should turn off if you plan on having the root user write data to that directory. That's a guess assuming that there is a third machine (the NFS server) or the directory on the Linux machine is NFS mounted to itself.

Another thing that's going to cause you trouble is that the users UIDs don't match between machines. That will make permissions-keeping / file access control challenging at best.

| improve this answer | |
  • I will check this out when admin comes to work next week ... – Radek Jul 16 '10 at 1:43
  • we added radek -rw,no_root_squash radek:/Users/radek/Sites to /etc/auto.imacs but it didn't help – Radek Jul 20 '10 at 1:22
  • What is the significance of the differing IP addresses in the 'addr=' options for the two mounts? Are you looking at different servers, or different clients? If the former, are you sure the /etc/exports are configured the same between them? If the latter, have you tried your test from another client? – Slartibartfast Jul 20 '10 at 4:10

I used -mapall=.... on my machine (=nsf server) in /etc/exports and everything works fine now. wwwdev although it is a development server :-) is nfs client in that case. Thank you for your help!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.