23.8 Starting the Samba and NetBIOS Name Services
In order for an Ubuntu server to operate within a Windows network both the Samba (SMB) and NetBIOS nameservice (NMB) services must be started. Optionally, also enable the services so that they start each time the system boots:
# systemctl enable smbd
# systemctl start smbd
# systemctl enable nmbd
# systemctl start nmbd
Before attempting to connect from a Windows system, use the smbclient utility to verify that the share is configured:
# smbclient -U demo -L localhost
Enter WORKGROUP\demo’s password:
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
sampleshare Disk Example Samba share
IPC$ IPC IPC Service (demo-server2 server (Samba, Ubuntu))
Officejet_Pro_8600_C7C718_ Printer
Officejet_6600_971B9B_ Printer
Reconnecting with SMB1 for workgroup listing.
Server...