Situatie
Samba contains several programs that serve different but related purposes, the most important two of which are:
- smbd: provides SMB/CIFS service (file sharing and printing), can also act as a Windows domain controller.
- nmbd: This daemon provides NetBIOS name service, listens for name-server requests. It also allows the Samba server to be seen by other computers on the network.
Solutie
Pasi de urmat
Samba is included in most Linux distributions. To install Samba on Ubuntu, simply run the following command in terminal.
sudo apt install samba samba-common-bin
The latest stable version available is 4.5.3, released on December 19, 2016. To check your Samba version, run
sudo smbstatus
or
smbd --version
Sample output:
Samba version 4.3.11-Ubuntu
To check if Samba service is running, issue the following commands.
systemctl status smbd systemctl status nmbd
To start these two services, issue the following commands:
sudo systemctl start smbd sudo systemctl start nmbd
Once started, smbd
will be listening on TCP port 139 and 445. nmbd
will be listening on UDP port 137 and 138.
- TCP 139: used for file and printer sharing and other operations.
- TCP 445: the NetBIOS-less CIFS port.
- UDP 137: used for NetBIOS network browsing.
- UDP 138: used for NetBIOS name service.
Leave A Comment?