Condition: A single Linux virtual machine, a Windows virtual machine
Premise: Two virtual machines are interconnected (here the Windows virtual machine is set to get the IP address automatically)
1. Mount the CD and install the DHCP package with rpm
Use RPM-QC to view the path to the DHCP file and copy its template file to the/etc/dhcp directory for execution
2. Edit the script file and start the DHCPD service
3. Get dynamic IP address in Windows virtual machine, ping server address
One, anonymous user mode
1, install the Samba package, to the/etc directory to modify its configuration file (Note: We should modify the configuration file when it is best to back up a copy, in the backup file, to avoid damage to the source file)
2. Turn off the firewall and turn on the SMB service
3. See if you can share in a Windows virtual machine and upload a file test
Second, the user authentication mode
1, modify the SMB configuration file, add user authentication module
2. Create Zhangsan and Lisi users, create test files and give them maximum permissions (note; Restart the service whenever you modify the configuration file)
3, the user test set, you can find Zhangsan can be read and writable, and Lisi due to be limited can not create a file in test (note here; only in the restricted files to take effect, the unrestricted folder can still operate)
The functionality of Samba is simple enough to make sharing between Linux and Windows possible. and using Samba to build a file server is not only more powerful than windows, but also fast and safe to access
Samba for Linux Services