- 查看系统下是否已经安装了samba
rpm -qa |grep samba - 安装samba
yum -y install samba - 配置samba
创建目录samba
mkdir -p /home/samba - 修改samba权限
chmod 777 /home/samba - 关闭防火墙
service iptables stop - 配置smb.conf
设置不需要密码访问
在 [global] 部分加入:
null passwords = yes
设置 security = share
[web]
comment = Public web
path = /home/samba
public = yes
available = yes
browseable = yes
writable = yes
guest ok = yes - 设置开机自启动
chkconfig --level 235 smb on
时间: 2024-10-12 20:40:16