日期:2014-05-16  浏览次数:20721 次

linux下samba服务器配置,帮忙看看问题出在哪里?
环境:Red Hat linux Server 6
[root@testbbs ~]# rpm -qa | grep samba
samba-client-3.5.4-68.el6.i686
samba-winbind-clients-3.5.4-68.el6.i686
samba-3.5.4-68.el6.i686
samba-common-3.5.4-68.el6.i686


[root@testbbs usr]# vi /etc/samba/smb.conf
[global]
        workgroup = WORKGROUP
        server string = bbs test
        log file = /var/log/samba/log.%m
        load printers = no
        max protocol =smb2
        security = share

[test]
        comment = bbs test
        path = /usr/public
        browseable = yes
        read only = no
        public = yes
        guest ok =yes


[root@testbbs usr]# ll
drwxrwxrwx.   3 root root   4096 2013-03-06 01:13 public

win7下连接能够打开,不过新建文件,复制文件等操作都提示无此操作权限。
但权限我已经设置为可读可写可执行了,不知道哪里出现错误,
求解!
samba设置 linux?samba配置

------解决方案--------------------
加一行writable = yes 试试。
------解决方案--------------------
[test]
        comment = bbs test
        path = /usr/public
        browseable = yes
        read only = no
        public = yes
        guest ok =yes

在后面加上 create mask = 0777 和 security = share 这两句,试一下
------解决方案--------------------
smbpasswd -a mshare
chcon -R -t samba_share_t /usr/public