Samba实现Ubuntu共享文件夹
更新软件包
1
2
3sudo apt-get upgrade
sudo apt-get update
sudo apt-get dist-upgrade安装Samba服务器
1
sudo apt-get install samba samba-common
添加Samba用户
1
sudo smbpasswd -a root
修订配置文件
vi /etc/samba/smb.conf1
2
3
4
5
6
7
8
9
10
11
12[samba]
comment = share folder
browseable = yes
path = /
create mask = 0700
directory mask = 0700
valid users = root
force user = root
force group = root
public = yes
available = yes
writable = yes重启Samba服务器
1
sudo service smbd restart
更新防火墙规则(Ubuntu20需要执行)
1
sudo ufw allow samba
Samba实现Ubuntu共享文件夹
https://sslin.online/2023/02/11/Samba/