Samba

https://tutorials.ubuntu.com/tutorial/install-and-configure-samba#0

https://blog.csdn.net/wbaction/article/details/72758673

install

1
sudo apt-get install samba

config

1
sudo vim /etc/samba/smb.conf

添加在后面

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[smbshare]
comment = samba home directory
path = /home/user/w/smbshare
public = yes
browseable = yes
public = yes
read only = no
valid users = user
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
available = yes
```

```sh
chmod 777 /home/user/w/smbshare

add user

1
sudo smbpasswd -a $USER

restart

1
sudo service smbd restart

uninstall

1
sudo apt remove --purge samba samba-common

reinstall

sudo apt remove –purge samba samba-common
sudo apt install samba