I used to share windows. Today, let's try to see how sharing is implemented in linux. In fact, the relationship between the two is not complex. As a "formal" and "rigorous" technology, we do not need to copy it with a USB flash disk every day. Let's take a look at the wonderful use of samba! I. Deployment of a SAMBA server in the Samba service includes two programs: 1. smbd: providing access to server shared resources for the client. 2. nmbd: provides resolution of netbioS host names. 1. sam is used to sharing windows. Let's try sharing in linux. In fact, the relationship between the two is not complex. As a "formal" and "rigorous" technology, we do not need to copy it with a USB flash disk every day. Let's take a look at the wonderful use of samba!
I. Deployment of SAMBA services
The Samba server contains two programs: 1,Smbd: provides access to server shared resources for the client. 2. nmbd: resolves the netbioS host name.
1. samba Installation
Samba is a tool integrated with Linux. You can choose to install it during Linux installation. Run the following command to check whether samba is installed in the system:
Rpm-qa | grep samba
650) this. width = 650; "border = 0>
View samba commands: Rpm-ql samba | head-20 (view the first 20 rows)
2. samba Configuration
(1) linux uses samba to Access windows Shared Folders
Set the shared folder on windows:
650) this. width = 650; "border = 0>
View the shared folder on linux and find that the skins folder exists. Smbclient-L 192.168.10.100
650) this. width = 650; "border = 0>
Enter the shared folder as FTP to download the file. Note that the administrator password cannot be blank. Smbclient // 192.168.10.100/skins-U administrator
650) this. width = 650; "border = 0>
Download and view the TSET file, and find that it has been downloaded to the root directory:
650) this. width = 650; "border = 0>
Mount the shared directory directly under the folder: Mount-t cifs-o username = administrator // 192.168.10.100/skins/mnt/share
650) this. width = 650; "border = 0>
Uninstall shared directory Umount/mnt/share