share files over local area network

LAN sharing is a headache, as long as you find the correct setting method, it is actually very simple. The original version also needs to be set up, otherwise it cannot be shared!

If you have been confused about sharing, then you can take a moment to read these articles, I believe that you can basically solve the sharing problem in the future. For LAN sharing, we will take the sharing that Network Neighborhood can access to prevail. Shares accessed without regard to \\computername or \\IP. Because this access mode is enumerated through workgroup and user anonymous shares, access to Network Neighborhood at \\computername or \\IP may not be available. And from the network neighbors can visit it must also be able to visit. Let's solve it one by one from now on. The problem is listed in the error box that appears when you open Network Neighborhood to "View Workgroup Computers" to failure to access "a host", so as long as you check your error box, The answer to your question may be found here.


Chapter 1: Shared premise work:

1. Change different computer names and set up the same workgroup! 2. Right-click on My Computer - Manage - Computer Management - Local Users and Groups - User: Change the administrator username 3. Manually set the IP, set the IP to the same network segment, the subnet mask and DNS resolution are the same 4. How to Set DNS resolution: First, you can use automatic acquisition, then enter cmd in Start-Run and press Enter, enter ipconfig/all in the command and press Enter 5. Enter services.msc in Run and press Enter to open the service Chapter 2: Sharing (Note that it is best to restart after the settings are completed to take effect): 1. Start - Settings - Control Panel - Firewall - Exceptions - Check "File and Printer Sharing"! Of course you can also turn off the firewall. 2. Enter secpol.msc in the run and press Enter to enter the local security settings - local policy - security option to disable "Network Access: Do not allow anonymous enumeration of SAM accounts" Note that this point only works for guests, which will be described in Chapter 6 Speaking of. Disable "Account: Local accounts with blank passwords only allow console login" 3. Double-click My Computer to open Explorer - Tools - Folder Options - View - check the box in front of "Use Simple Folder Sharing" Remove! 4. Set a shared folder or a shared drive letter (I set the D drive as a shared drive letter here, of course, you can set any folder in the disk as a shared file) Open the resource manager - right click on D drive - share and security - left Click the key to open . Note: After the shared resource settings in the above two pictures, we only have "read-only" permission to enter each other's machine, and we can only see and cannot move! This is the default security of XP! Of course you can set full control. That way you can do whatever you want haha. Chapter 3: LAN sharing with administrator login














































After the settings in the above two chapters, we can already access the computer today.
1. Double-click My Network Neighborhood in the host computer - click to view the workgroup computer . 2. Double-click today or right-click to open it. Enter \\today directly in the address bar and press Enter, the interface that appears is the same as above. 4. Enter the user name play and password in the login box (the password here is empty, so there is no need to enter it), after confirming, you will enter the shared drive letter of today. Tip: When we log in to today again in the future, we do not need to enter the user name and password again. Ha ha Chapter 4: The LAN sharing method of guest login After the settings in Chapters 1 and 2, we need further settings to achieve guest sharing 1. Right-click on "My Computer" - Manage - Local Users and Groups - Users -Enable the guest (Note: The effect of enabling the guest here is the same as enabling the guest in the control panel - user account. The difference is that after enabling it, the guest in the panel still shows that it is not enabled, and if you enable the guest in the panel, here It is also enabled.) 2.. Enter secpol.msc in the run to start "Local Security Settings" - "User Rights Assignment" - delete the guest user in "Deny access to this computer from the network". 3. Enter secpol.msc in Run to start "Local Security Settings" - "Security Options" - "Network Access: Sharing and Security Mode for Local Accounts" - Change "Classic" to "Guest Only". 4. Enter secpol.msc in the run to start "Local Security Settings" - "User Rights Assignment" - delete the user in "Reject as a server and batch job" Note: The above settings need to be restarted to take effect 5. We can now do the same as the third The entry method of the chapter enters the shared resources of today. The difference is that the sharing method of guest login does not pop up the login box, and you can enter directly without entering the user name and password.






































Tips: From the above setting methods, we can see that the sharing method of administrator login is narrow sharing, and the sharing method of guest login is general sharing.
It can be said that: Guest sharing already contains the way of administrator sharing. However, the way to enable guest login removes the way of administrator login.

Chapter 5: Use disk mapping to directly map today's shared resources to the host. In the future, you can open it directly in the host resource manager. The premise is that today must also be turned on in the local area network.
1. Right-click "Network Neighborhood" in the host - click "Map Network Drive" 2. Browse today's shared drive letter 3. After completion, today's shared drive letter appears in the host. Chapter 6: Common faults in LAN access and Solution 1. The user name box does not pop up when accessing the other party's computer, and the reason why the shared folder on the other party's computer cannot be opened is that the administrator user name of this machine is Administrator, and you can change it to any name! Note: This phenomenon only occurs when the shared method is used for guest login. ! 2. When accessing the other party's machine, the user name in the login dialog box is always gray, and the guest is not selectable . Solution: Local Policy - Security Options - "Network Access: Sharing and Security Mode of Local Accounts" to "Classic - Local Users with Your own identity verification" and that's it! Note: The above phenomenon occurs after we use the sharing method of guest login, and we accidentally disable the guest. After disabling the guest, we have become a sharing method logged in as an administrator! 3. The phenomenon of not having permission to use network resources appears when logging in to the other party's machine in the shared mode of administrator login. This is our normal shared use because it is turned off when some security software is installed. We just need to remove the tick in front of "Use Simple File Sharing" again!































4. The third point will suddenly appear when using the shared method of guest login in the use of the local area network. The reason is also to use some security software to restore our SAM account to the default enabled state.
We just need to enter the group policy to disable and restart!
Friendly reminder: It should be noted that we install some software such as Kingsoft antivirus software, which will close some services in our sharing settings and cause normal sharing. We only need to follow the settings of the above chapters and the settings of this chapter to solve the problem.


Chapter 7: Increase LAN security and set passwords for guest users.
In fact, we have already mentioned the permission settings in the shared drive letter settings in Chapter 2. The default is read-only, which is already very safe.
However, everyone in the local area network can access you. If we set a password, others cannot freely access your shared resources.

1. Enter control userpasswords2 and press Enter . 2. Restart after setting the password. 3. After setting the password, log in to today and a gray dialog box will appear. We just need to enter the password to confirm. You only need to enter the password once, and you don't have to enter it again when you log in again. 4. In Computer Management - Shared Folders - Session, you can see the login method. Tip: From the above settings, we can see that this method is also set to share the method of logging in as an administrator. No more trembling here. Local area network 98, 2000, XP mutual access problem solving complete manual XP file sharing complete manual WIN xp is the NT kernel, so the network security requirements are higher than 9x. Also different from 9x when it comes to file sharing. In the 9x system, you only need to set a password in the share, and you can only allow users who know the password to log in. And xp can not be so simple to achieve.





















The sharing of win xp is divided into two: simple file sharing (Simple File Sharing) and advanced file sharing (Professional File Sharing). XP has simple file sharing turned on by default.

1. Simple File Sharing

Open Simple File Sharing is very simple, just right-click on the drive or folder, and then select Properties, as shown in the figure below,

we only need to select Share this folder in the network. After sharing, the item "Allow network users to change my files" is turned on by default, so if there is no special need, we must remove the tick in front of the shared drive. Some security prompts will appear first, as shown below:

Then click on the shared drive , the settings as shown in Figure 1 will appear.

Open the GUEST account

This step is very important, the default GUEST account of xp is not opened, as shown below:

To allow network users to access this computer, the GUEST account must be opened. Execute "Start-Settings-Control Panel-Administrative Tools-Computer Management-Local Users and Groups-Users" right-click on the GUEST account on the right, select "Properties" and then remove the "Account is disabled" option, use 98 Network user login, the username and password are the same as those you just entered under XP.

If it still cannot be accessed, it may be that the local security policy restricts the user from accessing. When the GUEST user is enabled or there is a corresponding account locally, click "Start--Settings--Control Panel--Computer Management--Local Security Policy" to open "Local Security Assignment--Deny access to this computer from the network" If you see GUEST or the corresponding account in the user list of , please delete it and set up simple file sharing. Any user on the network can access it without a password, which is simple and clear.

2. Advanced file sharing

XP's advanced file sharing is to set different accounts and give different permissions respectively, that is, set ACL (Access Control List, access control list) to plan the sharing of folders and hard disk partitions to limit user access. the goal of.

First, prohibit simple file sharing:

first open a folder, in the menu bar "tools", "folder options", "view" tab, in the advanced settings, remove "use simple file sharing (recommended)" , as shown below:

This alone does not enable advanced file sharing, it just disables simple file sharing, and you must enable accounts and set permissions to limit access.

Second, set up accounts

Enter the user account of the control panel, there are computer accounts and guest accounts. Just opening the GUEST account cannot achieve the purpose of multiple users with different permissions. And in advanced file sharing, Windows XP does not allow network users to access the system through accounts without passwords by default. So, we have to set up different accounts for users with different permissions.

Assuming that other users of the network have the same access rights (which is the case in most cases), we only need to set up one user. In the user account, create a new user. Since we must consider network security, the user must have the least privilege and the least service, and the type is set to "restricted user". The AAA user shown above.

By default, the new account of XP does not have a password. As mentioned above, by default, XP does not allow network users to access through accounts without passwords. So, we have to fill in the password for the AAA user we just added.

Adding users can also be done in this way: open the Control Panel, "Administrative Tools", "Computer Management", "System Tools", "Local Users and Groups", "Users", in the right window, right-click to create a new user, as shown below:

If you want network users to access the system through this account without a password, you need to change the security policy of xp:

open the control panel, "administrative tools", "local security policy", expand "local policy - security options", double-click "account: Local accounts with blank passwords allow console login only" and disable it, then OK. As shown below:

Note: There is no group policy in the Home version of Windows XP.

Third, set up sharing

After completing the above settings, you can set up sharing, click a folder, properties, sharing tab, hey, it is different from just now, there is an additional button for permissions below. As shown in the figure below:

Click on permissions, the default is EVERYONE, that is, each user has full control permissions as shown in the figure below:

(BIGEASTAAA) represents the AAA user in the computer bigeast.

If we set AAA to have read-only permissions, just tick "read" there.

Description of permissions:

Read permission allows the user to: browse or execute files in the folder.

Change permissions allow the user to: change the contents of the file or delete the file.

The Full Control permission allows the user: Full access to the shared folder.

If you set different accounts with different permissions, repeat the above steps again.

In particular, when advanced sharing is turned on, all partitions of the system are shared by default and must be changed back.

Fourth, the network user accesses the shared folder

If the network user's operating system is NT/2000/XP, the user's password will be prompted when accessing, just enter the account password that has just been set, and you can access it normally. Otherwise it cannot be accessed.

If the operating system of the client is Windows 95/98/Me, it can be set to log on to the network directly when logging on to Windows, so that you can log on to Windows xp/2000/NT directly. The username is the key to it all. However, many Windows 9X computers are set up to log in directly to the desktop without providing a username and password (ie Windows login). If so, click Start - Logout and the currently logged in username will be displayed. As long as you are sure to log out, you can log in with another user name. After logging in, double-click the Network Neighborhood icon to browse all shared folders and hard disk partitions. If you encounter errors during this step, it may be caused by not logging in correctly.

How to solve Win98's inability to access Win2000 and winxp

Common method:

make the GUEST user effective in the user management of Win2000 professional.

Operation method: Control Panel→Users and Passwords→Advanced→Advanced→Click the "Users" folder→then right-click on the Guest (for guests to access the computer or the built-in account of the domain) on the right to set its properties→in the general options Just remove the check mark next to "Account is disabled".

For Windows 2000 Server and Windows 2000 Advanced Server systems installed in "per server" mode, the operation method is: Control Panel→Administrative Tools→Computer Management→“Local Users and Groups” in the “System Tools” option→then in the Guest ( Right-click on the built-in account for guests to access the computer or access the domain) to set its properties → remove the check mark before "Account is disabled" in the general options.

If it has not been resolved, please read below:

Countermeasure 1: Enable the Guest user in Win2000/XP. After the Win2000/XP system is installed, two user accounts will be created by default, namely Administrator (system administrator) and Guest (guest account). All users who are not assigned to accounts on the local computer will use the Guest account by default. This account There is no password. However, by default, this Guest account is not enabled. We can find the "Guest" account from "Control Panel|Administrative Tools|Computer Management|Local Users and Groups|Users", and right-click to open the "Guest" account Properties" dialog box (Figure 6), remove the check mark on the "Account is disabled" check box here, so that you can access Win2000/XP from Win98 after exiting.

In fact, after enabling the Guest account, the biggest advantage is that you do not need to enter the user name and password when accessing Win2000/XP from Win98. This method is more suitable for local area networks with uncertain users and a large number of visits, but it is not suitable for home users. Say it doesn't apply.

Countermeasure 2: Check whether there are security policy restrictions in Win2000/XP. Sometimes, Win2000/XP is too "smart". Although we have enabled the Guest account, we still cannot access Win2000/XP from Win98. At this time, we need to go to "Control Panel|Administrative Tools|Local Security Policy|Local Policy| "User Rights Assignment", find "Access this computer from the network" or "Deny access this computer from the network", then check whether there is a Guest account or other corresponding accounts, and then add or delete it according to different situations.

Solution 3: Disable the firewall on the local connection. A firewall is a security system that acts as a border guard between the network and the outside world. Microsoft provides users with a built-in Internet Connection Firewall (ICF) in WinXP, which can restrict certain unsafe information from entering the internal network from the outside. However, if you enable this firewall on the local connection, it will cause mutual access between workgroups, "XXX cannot be accessed", "You may not have permission to use network resources", "Please contact the administrator to find out if you have access rights", "No network path found", etc., please disable the firewall blocking of the local connection in Figure 7.

Disable ICF

countermeasure four: add NetBEUI protocol for WinXP. In fact, it is sometimes simpler to directly add the NetBEUI protocol to solve the problem of inability to access each other, and it can solve the problem of enabling the firewall mentioned above. The NetBEUI protocol will be automatically installed when Win98 is installed, but since WinXP no longer provides technical support for the NetBEUI protocol, it can only be added manually.

Find the WinXP installation CD, enter the "ValueaddMsftNetNetbeui" folder, there are 3 files including Nbf.sys, Netbeui.txt, Netnbf.inf, first copy the Nbf.sys file to the "WindowsSystem32Drivers" folder of the machine ( The local machine here refers to the computer where WinXP is installed), and then copy the Netnbf.inf file to the "WindowsINF" folder of this machine, and the Netbeui.txt file is optional. However, the INF folder has a hidden attribute, and the user needs to select the display file in the "Tools|Properties" window under WinXP to see the directory. In addition, we can also select "Install from Disk" in the dialog box shown in Figure 8, insert the WinXP installation disk, enter the "ValueaddMsftNetNetbeui" folder step by step, find the Netnbf.inf file to open, and then install the NetBEUI protocol.

Select the "Have Disk" method.

Countermeasure five: Enable "File and Printer Sharing" in Win98. This is a very simple but often overlooked problem, that is, although the machine with Win2000/XP can find the machine with Win98 in "Network Neighborhood", it cannot be accessed, because Win98 does not enable "Allow" It is caused by other users accessing my files", enabling this option can solve this problem Two-way access solution between Windows XP and Windows 98se in the

LAN

1. Install the NetBEUI protocol

on There are three files in the VALUEADDMSFTNETNETBEUI directory under the WINXP installation CD , in which NETBEUI.TXT states the following:

NetBEUI (NBF) is a non-routable protocol suitable for small-scale networks. Microsoft Windows no longer supports this protocol. If you are prompted by Product Support to install this protocol as a workaround, follow the instructions below.

How to install the NetBEUI protocol on Windows XP and Windows 2002.

* Copy nbf.sys to %SYSTEMROOT%SYSTEM32DRIVERS directory

* Copy netnbf.inf to %SYSTEMROOT%INF directory

* Open network connection properties, click "Install..." button to install NetBEUI protocol

Note : %SYSTEMROOT% is where you install XP The directory name, mine is WINDOWS.

2. Check whether the security settings prohibit GUEST

. When the system Guest user is enabled, click "Start" - ""Run", enter gpedit.msc, you can call up the Group Policy Editor, and in "Local Computer Policy Computer Configuration Windows" Set Security Settings Local Policy User Rights Assignment Deny access to this computer from the network" You can see that there is a Guest user! If you delete the Guest user here, then other computers can view the shared directory of this computer from the Network Neighborhood. Some machines do not necessarily prohibit GUEST, then you don't have to do anything.

3. Special note: The above operation is because the machine on the local area network of this unit uses the NETBEUI protocol. This protocol is not installed by default when XP is installed.

Remove the prompt to enter a password for Network Neighborhood sharing


Run gpedit.msc computer configuration windows settings security settings local policy security options network access: local account sharing and security model choose the guest only one do not choose the classic one.


After testing, this method can remove the shared input password

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326897377&siteId=291194637