分类:
2010-03-08 13:19:51
1 安装smb服务器
# sudo apt-get insall samba
# sudo apt-get install smbfs
2 修改smb配置文件
vim /etc/samba/smb.conf
#########################smb.conf#######################################
[global]
workgroup = WORKGROUP
netbios name = fatterserver
server string = This is fatter's samba server
unix charset = utf8
display charset = utf8
dos charset = cp950
log file = /var/log/samba/%m.log #%m类似一个环境变量,鸟哥的相关文章有解释
max log size = 50
security = share
dns proxy = no
#template shell = /bin/false
[tfatter] #要分享的目录的名字
comment = Fatter file space
path = /var/fatter #目录的路径可能会导致权限不够无法访问
read only = no
public = yes
writeable = yes
#########################smb.conf end#######################################
3 建立共享的目录
mkdir -pv /var/fatter
4 测试配置文件是否有错误
estparm
5 重新启动samba
/etc/init.d/samba restart
6 可能在windows下访问了