当前位置: 技术问答>linux和unix
linux下samba服务器配置,帮忙看看问题出在哪里?
来源: 互联网 发布时间:2017-04-03
本文导语: 环境: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] workgr...
环境: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下连接能够打开,不过新建文件,复制文件等操作都提示无此操作权限。
但权限我已经设置为可读可写可执行了,不知道哪里出现错误,
求解!
[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下连接能够打开,不过新建文件,复制文件等操作都提示无此操作权限。
但权限我已经设置为可读可写可执行了,不知道哪里出现错误,
求解!
|
smbpasswd -a mshare
chcon -R -t samba_share_t /usr/public
chcon -R -t samba_share_t /usr/public
|
加一行writable = yes 试试。
|
[test]
comment = bbs test
path = /usr/public
browseable = yes
read only = no
public = yes
guest ok =yes
在后面加上 create mask = 0777 和 security = share 这两句,试一下
comment = bbs test
path = /usr/public
browseable = yes
read only = no
public = yes
guest ok =yes
在后面加上 create mask = 0777 和 security = share 这两句,试一下