This worked like a pro! thanks for the little tidbitOK. /opt/ is owned by root and should be, so I guess you need to do what you're doing if you really want to share it.
The problem now I think is you still have a ; in the line ; "usershare owner only = False. This makes it a comment. Try taking the ; and the " out and saving, then restarting Samba with:
Is there any particular reason you want to share /opt/? It's a pretty obscure part of the directory structure.Code:sudo /etc/init.d/samba restart
What is the folder you want to share? Did you create it yourself? Another, possibly better approach would be to change the ownership of the directory you are sharing.