The Server Message Block (SMB) protocol is a high-level protocol that allows different computers on the network to share files, printers, and different communication materials. Samba is a group of software packages. It enables Linux to support the SMB protocol, which is implemented on TCP/IP. It is the basis for Windows Network File Sharing and printing, handles and uses remote files and resources. Samba has two Daemon Processes: smbd and nmbd.
Server Message Block (SMB) is a high-level protocol that allows different computers on the network to share files, printers, and different communication materials.
Samba is a group of software packages. It enables Linux to support the SMB protocol, which is implemented on TCP/IP. It is the basis for Windows Network File Sharing and printing, handles and uses remote files and resources.
The core of Samba is the two daemon processes smbd and nmbd, which run continuously from the server startup to the stop. Smbd listens to the 139TCP port; nmbd listens to the 137 and 138UDP ports.
Features of Samba:
-Shared Linux File System
-Allows Windows users to browse networks using network peers
-Supports Windows Domain Controllers and Windows member servers to authenticate users using Samba resources.
Install SMB:
1.First, set the virtual optical drive to load the iso file of the second Fedora disc to our virtual machine.
2. Start the ora virtual machine, enter the command line, log on as the root user, and enter the following command:
Mount/dev/cdrom/mnt
The above command means to mount the disc to the/mnt directory, so that you can go to the/mnt directory to view the content on the disc.
3. Enter the/mnt directory.
Cd/mnt
4. Run the following command to check whether the corresponding software package is installed:
Rmp-qa | grep samba
5. Run the following command to install the software package.
Rpm-ihv samba-3.3.2-0.33.fc11.i586.rpm
Rpm-ihv samba-common-3.3.2-0.33.fc11.i586.rpm
Rpm-ihv samba-client-3.3.2-0.33.fc11.i586.rpm
Because my system has been installed, the above installation sequence may be different. If there is a dependency, install it according to the dependency.
After the installation is complete, enter testparm to check whether the command exists. If yes, the smb has been installed.
Configure SMB
1. Open the SMB configuration file,/etc/samba/smb. conf
2. edit parameters in smb. conf.
Samba security level ):
There are 4 security levels in Samba
-Share: If this level is used, the user can log on to the Samba server without the account and password.
-User: This is the default security level for Samba servers. The Samba server is responsible for checking accounts and passwords.
-Server: Under this level, you can specify a Windows server or Samba server to check the account and password.
-Domain: In this level, you must specify a Windows server to verify the account and password.