Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

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

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.

share|improve this 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.

share|improve this answer

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

force user = root 
share|improve this answer

Your Answer


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

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