Samba for Linux Services

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.