Chinaunix首页 | 论坛 | 博客
  • 博客访问: 81929
  • 博文数量: 46
  • 博客积分: 985
  • 博客等级: 准尉
  • 技术积分: 450
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-20 22:56
文章分类

全部博文(46)

文章存档

2011年(46)

我的朋友

分类: LINUX

2011-01-25 08:53:16

安装3个包
samba-common-3.0.33-3.28.el5
samba-3.0.33-3.28.el5
system-config-samba-1.2.41-5.el5
修改配置
cat /etc/samba/smb.conf |grep -v "#" |grep -v ";" > /tmp/smb.conf
拷贝此文件到/etc/samba/smb.conf
修改----------
对共享文件夹写入权限
对用户设定密码!!
smbpasswd   -a   用户名
重启服务
开机自动开启服务
chkconfig --level 345 smb on
 
[global]
        workgroup = MYGROUP
        server string = Samba Server Version %v
        security = user
        passdb backend = tdbsam
        load printers = yes
        cups options = raw
[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
[public]
        comment = All Printers
        path = /tmp/public
        browseable = yes
        guest ok = yes
        writable = yes
 
 
[global]
        workgroup = MYGROUP
 #所在的工作组
        server string = Samba Server Version %v
 #版本号
        security = user
 #安全等级share,user,server,domain
        passdb backend = tdbsam
 #密码存放位置
        load printers = yes
        cups options = raw
[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
 #是否为打印机
[public]
        comment = All Printers
        #描述
        path = /tmp/public
        #路径
        browseable = yes
        #目录是否可见
        guest ok = yes
        #访客
        writable = yes
        #是否可写
 
阅读(646) | 评论(0) | 转发(0) |
0

上一篇:SAMBA基础笔记

下一篇:FTP两种传输模式

给主人留下些什么吧!~~