SMB/CIFS

SMB/CIFS占用TCP和UDP的139和445端口。

SMB: server message block.

CIFS: common internet file system, 是SMB的升级版本。

Samba

Samba: Linux/Unix上的SBM/CIFS,用于跨平台的共享。

安装:

1
$ sudo apt-get insall samba

配置:

1
2
3
4
5
6
7
8
9
$ vim /etc/samba/smb.conf
[shared]
comment = share this folder
path = /home/canux/Share
public = yes
guest ok = yes
browsable = yes
writable = no
read only = yes

重启:

1
$ sudo service smbd restart

windows访问:

1
\\ip\folder

linux访问:

1
connect to server -> smb://ip/folder