Read Only Samba Shares on OS X Leopard Published 28 Aug 2008
Currently on my iMac I have a couple of external disks attached that I want to share to the rest of my house. The problem though is that when sharing through Samba I can't make the shares read only, OS X pretends to accept the permissions change in preferences > sharing, but just changes it right back. After a little bit of poking I've got read only shares working.
Open a terminal and replacing {sharename} with the name of the share you set up in Preferences, type:
sudo nano /var/samba/shares/{sharename}
Now append the following line to the end of the file and hit ctrl-o to save.
read only = yes
Finally, reload the Samba config files using this:
sudo /usr/sbin/smbd reload