++ ++
This article is original on this site. You are welcome to repost it! Reprinted please indicate the source:
Http://blog.csdn.net/mr_raptor/article/details/6844693
++ ++
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.
Add the following parameters at the end of the file:
We set the Share Name To HomeworkShare.
Set the shared path:/home
Set whether to browse: yes
Set whether to make public: yes
Set security level: pulic
Set whether to write data: yes
Set the Group to which the file belongs: Michael Group
Set the Server display string: Samba Server Version and SMB Version
In this case, run testparm to test whether the parameters we write are correct.
Then, start the smb service through: server SMB restart.
Add a new user, smbusr, and set the password through the smbpasswd user name.
If the following information is displayed:
It indicates that our SMB can be used. The windows network neighbor can access the resources under the shared directory.
VSFTPD
Vsftpd:
-Vsftpd is a GPL-based FTP server software used on UNIX-like systems. Vs is short for "Very Secure". From this name, we can see that the author's original intention is to Secure the code. In addition, high speed and stability are two other features of vsftpd.
Similarly, go to the installation directory/mnt/Packages and check whether the VSFTPD installation package is available,
Ls vsftp *
Then run rpm to install:
Rpm-ihv vsftpd-2.1.0-2.fc1l.i586.rpm
After the installation is complete, start ftp through: service vsftpd restart. After the ftp is started, create a new account, for example, ftpusr, to log on to ftp. Enter ftp: // 192.168.1.222 in the browser and enter our user name and password to go to ftp.
++ ++
This article is original on this site. You are welcome to repost it! Reprinted please indicate the source:
Http://blog.csdn.net/mr_raptor/article/details/6844693
++ ++