When trying to mount an Windows file service over SMB (Samba) in Lion I get the following error when trying to write:

  % touch testfile.txt          
  touch: testfile.txt: Read-only file system

This happens both when connecting via Finder or mounting in the Terminal.

mount_smbfs -f 777 -d 777 //david.hall@fileserver1/wwwroot remote
Password for fileserver1: 

I have no problem reading the files and my user do have permission to write to the directories in question.

I'm going to assume its windows server as you're mounting a wwwroot. Ensure your user david.hall has file permission access to the correct hierarchy not just share permissions. This is usually why stuff mounts as read-only from the win side.

OS X just mounts the share as normal unless you specify otherwise.

Add force user to the share in smb.conf. (Change to the appropriate user name)...

force user = root 

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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