cetos6 安装samba共享文件夹
yum方式安装
yum install samba
修改配置文件
vim /etc/samba/smb.conf
[global]
comment = global
workgroup = QFpay
server string = Samba Server Version %v
log level = 10
log file = /var/log/samba/log.%m
max log size = 50
security = user
smb passwd file = /etc/samba/smbpasswd
passdb backend = smbpasswd
load printers = yes
cups options = raw
map to guest = bad user
[public]
comment = read only public
path = /home/samba/public
# only guest = Yes
# read only = Yes
writable = Yes
browseable=yes
guest ok =Yes
public = Yes
create mode = 0777
directory mode = 0777
vfs object = recycle
recycle:noversions = *.doc
recycle:exclude = *.mp3 | *.tmp
recycle:maxsize = 0
recycle:repository = /home/recycle/%U
recycle:keeptree = yes
recycle:versions = yes
增加用户,设置密码
smbpasswd -a 用户名
重启samba
/etc/init.d/smb restart
使用
//ip地址
输入用户名密码登陆即可
赵客缦胡缨,吴钩霜雪明。
银鞍照白马,飒沓如流星。