centos6.5 部署samba服务共享了一个目录share (不用输入密码就可以访问)
windos 下的访问:
直接通过\\xxx.xxx.xxx.xx\share
linux 安装samba
安装: yum install samba samba-client samba-swat
cat /etc/samba/smb.conf
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
hosts allow = 10.0.8.0/24
log file = /var/log/samba/log.%m
max log size = 50
security = share
passdb backend = tdbsam
load printers = yes
cups options = raw
[share]
comment = share
path = /project/tools
browseable = yes
guest ok = yes
writable = yes
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
linux 下的访问:
yum install cifs-utils
mount -t cifs //xxx.xxx.xxx.xx/share /opt/samba_share (挂载share目录到本地的samba_share 目录)
注意: 只有root可以挂载, 虽然samba 没有设置密码,但是任然会提示输入密码,直接回车就可以了.