samba服务器配置
1.安装
yum install -y samba.x86_64 samba-client.x86_64 samba-common.x86_64
2.修改配置文件
mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
grep -v "^#\|^;" /etc/samba/smb.conf.bak > /etc/samba/smb.conf
cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server For KBM
# logs split per machine
log file = /var/log/samba/log.%m
# max 50KB per log file, then rotate
max log size = 5000
security = share
passdb backend = tdbsam
[kbm]
comment = kbm share dir
path = /kbm
browseable = yes
guest ok = yes
writable = yes
3.修改目录权限
# chown nobody. /kbm/
# chmod 777 /kbm/
4.启动服务
# /etc/init.d/smb restart
5.挂载测试
windows
\\10.50.126.3\kbm
三种权限配置
http://developer.51cto.com/art/200512/12834.htm
samba配置全攻略
阅读(5454) | 评论(0) | 转发(0) |