[ubuntu]samba简单安装配置

1349阅读 1评论2010-03-08 fatterlinux
分类:

安装smb服务器

# sudo apt-get insall samba

# sudo apt-get install smbfs

修改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#######################################

建立共享的目录

mkdir -pv /var/fatter

测试配置文件是否有错误

estparm

重新启动samba

/etc/init.d/samba restart

可能在windows下访问了


上一篇:没有了
下一篇:调试的程序不顺序执行

文章评论