1.安装 samba
apt-get install samba
2. 创建共享文件夹 并修改共享权限
mkdir /home/share
chmod 777 /home/share
3. 编辑smb.conf
vim /etc/samba/smb.conf
在文档的最后加入
[share]
path=/home/share
available=yes
browseable=yes
public=yes
writable=yes
4.重启samba服务
service smbd restart
5. 访问
windows中,win+r 输入\ip
或在工作组计算机中找到ubuntu主机
ubuntu中,connect to server smb://ip/
ubuntu 创建共享文件夹 命令行
最新推荐文章于 2024-01-17 11:13:08 发布