On windows, you can use a virtual machine to build the samba service for linux as follows: 1. install samba first; 2. configure the server; 3. start the server; 4. access the service in windows; procedure: install samba: 1. first use rpm-qa | grepsamba to view the operation system...
On windows, you can use a virtual machine to build the samba service for linux as follows:
1. install samba first;
2. configure the server;
3. start the server;
4. access in windows;
Procedure:
Install samba:
1. First, use rpm-qa | grep samba to check whether samba has been installed in the operating system. if samba is installed, the corresponding installation packages (usually three) are displayed );
2. if it has been installed, you can use the rpm-e samba command to uninstall it;
3. you need several packages if they are not installed:
Samba-common-2.2.7a-7.9.0.i386.rpm (usually first install this package, it is public)
Samba-client-2.2.7a-7.9.0.i386.rpm
Samba-2.2.7a-7.9.0.i386.rpm
These packages can be downloaded from the internet. Below is a good linux package:
Http://www.icewalkers.com/rpm/search.php
4. use the rpm-ivh package name to install these packages respectively;
5. create a user for samba: cat/etc/passwd | mksmbpasswd. sh>/etc/samba/smbpasswd indicates that all users that can log on to linux can log on to the sharing server as samba users.
6. set password for samba User: smbpasswd username example: smbpasswd xiaoming
7. start server service smb start;
8. access the shared address on windows and enter "\ IP address" in the running window, for example, \ 192.168.78.131.
9. enter the user name and password to log on.
Problems encountered during installation and solutions:
1. in the windows window, enter \ 192.168.78.131, and "inaccessible \ 192.168.78.131" appears"
Solution: check the information to find out the problem of firewall configuration on linux. because no firewall is configured, the firewall is simply solved. I will learn more about configuration later! This problem is temporarily resolved.
2. during login, enter the user name and password, and a verification error is prompted (note: the corresponding user name and password have been set on linux );
Solution: I am using the win7 operating system. this is because of the security policy of the win7 operating system. I can find the following solution by checking the information on the Internet:
(1) click Start-run and enter secpol. msc;
(2) open "local security policy", and in the local security policy window, choose "local policy"> "security options ";
(3) Then, find "Network Security: LAN Manager authentication level" in the list on the right, and change the value of this option to "send LM and NTLM-if negotiated, use NTLMv2 session security.
Author "xueyue"