samba 只能读不能写

samba 只能读不能写

各位请帮忙。
smb.conf如下。目录也都设置成 777了,就是不能写,只能读。
[global]
        workgroup = HBME
        server string = HBME server
        netbios name = server
        client code page =936
        security = share
;       encrypt passwords = yes
        smb passwd file = /etc/samba/smbpasswd
        username map = /etc/samba/smbusers
        guest account = nobody
[home]
        comment =User directory
        path = /home/%U
        browseable = yes
        writable = yes
[doc]
        path = /opt/abc
        comment = share documents
        writable = yes
        browseable = yes
;       valid users = yuxing
        public = yes
~
http://www.linuxfans.org/nuke//modules.php?name=Forums&file=viewtopic&t=5204
path = /opt/abc

这句有问题,opt目录只有root有权限,把path改在/home下试试
chown -R +775 文件位置