Network security file sharing server

File sharing server

author: Big Fei

1. Overview of shared server

Provide file sharing services through the network, provide file download and upload services (similar to FTP server)

What is the port number after the remote desktop service is turned on? 3389

File sharing service: port number? 445, 445 is all turned on by default in Microsoft systems!

Two, create a share

方法:文件夹右键属性--共享--开启共享--设置共享名--设置共享权限
Note:
1) When logging in locally, it is only affected by NTFS permissions.
2) When logging in remotely, it will be affected by the shared and NTFS permissions together, and take the intersection!
3) So it is recommended to set the sharing permissions to be fully controlled by everyone, and then the specific permissions requirements can be set in the NTFS permissions. ,

Three, access to share

方法:
在开始运行/或我的电脑地址栏中,输入UNC地址:
\\文件共享服务器IP
\\文件共享服务器IP\共享名
True or False:
There is a folder on the server: d:\feifei
Server IP: 10.1.1.1
Share name: f
Which of the following methods can normally access the share?
\\10.1.1.1\d\feifei \\10.1.1.1\feifei \\10.1.1.1\d\f \\10.1.1.1\f correct
案例:
1.开2台虚拟机,并互相ping通
2.设置2003为共享服务器,并在客户机上可以访问共享,要求aa账户只能下载,bb账户只能上传,cc账户可以上传下载及删除 

Fourth, create a hidden share

Method: share name $

Five, access to hidden sharing methods

\\Server IP\share name$

Six, share related commands

  net share                         #列出共享列表
  net share  共享名  /del            #删除共享

Seven, all partitions of the shielding system are hidden and shared automatically

6.1, open the registry

Open the registry editor: regedit

6.2, locate the shared registry location

HKEY_Local_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\

Right-click to create an AutoShareServer key of type REG_DWORD with a value of 0

8. Check the local network connection status

netstat -an

9. Close 445 service

You can block incoming viruses by closing port 445 (such as ransomware, etc.)

Method 1: Open services.msc (service management window), and stop and disable the server service to prohibit the opening of port 445!

Method 2: Prohibit access to 445, configure advanced security firewall-inbound rules (in win7 and above systems, win2008 and above systems)

Guess you like

Origin blog.csdn.net/GUDUzhongliang/article/details/108624794