安装samba
sudo apt-get install samba samba-common
备份配置文件
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
修改配置文件
[share]
path = /home/cloud/share
available = yes
browseable = yes
public = yes
writable = yes
guest ok = yes
创建用户:
sudo smbpasswd -a cloud
重启smbd服务
sudo /etc/init.d/smbd restart
创建共享目录
mkdir share
chmod 777 -R share/
时间: 2024-10-09 21:52:20