安装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) |