File sharing and access methods

Members junior partner Hello everyone!
We connected to a file permissions operation, methods of operation and the next you little friends parsing file sharing.
We first use the system administrator to enter server2016, then abc files before we created folders in the E disk set, select properties, safety, edit, add zhangsan account, and only give its permission to read (not write hook)
File sharing and access methods
at this time zhangsan account for catalog abc folder has permission, for 111.txt directory also have corresponding rights (here since before our directory folder abc set subdirectory at compulsory inheritance)
File sharing and access methods
next, we began to prepare open sharing, we first think about what elements should have?

  1. Interoperability between two hosts (NIC teaming is set to host mode only)
  2. IP address is the same network segment (Example: server2016: 192.168.100.100/win10: 192.168.100.99)
  3. Because then use the ping command to detect whether the two interoperability, it is necessary to shut down the other side of the firewall server2016
  4. Then we enter the win10 system, evocative cmd, enter: ping 192.168.100.100 hit enter
    File sharing and access methods
  5. After confirming can pass then we can open the firewall server2016

Authenticated access (only know the user name and password to access the specified folder, or can not be accessed)

  1. Server2016 into the system, computer, E disk, abc file folder to select the right share
    File sharing and access methods
    2. Select Add User: zhangsan, click Add, select the permission level only Read permission, click Share, then prompt box will pop up at this time we have chosen to enable all public network discovery and network file sharing (specific operation as shown below):
    File sharing and access methods
    File sharing and access methods
    File sharing and access methods
  2. 此时会跳出已建立共享界面,此时显示的文件路径为共享访问路径,又称UNC路径,格式一般为:\主机名或者IP\共享文件夹的名称,例如我们设置的文件夹共享访问路径就可以这么写:\192.168.100.100\abc
    File sharing and access methods
    4这个时候我们进入win10x系统中进行验证:右键点击桌面左下角的Windows图标,选择运行,输入UNC路径,确定之后会跳出输入用户身份访问(具体操作及结果如下):
    File sharing and access methods
    File sharing and access methods
    此时我们输入用户名zhangsa密码123123,敲回车就可以访问到共享出来的abc文件夹了!

    如果进入之后显示访问受限,一般会是以下几点,我罗列出来之后以后大家自己操作事可以这样排除:
    ① .在server2016中点击网络,网络共享中心,高级共享设置,里面的所有对应项应该全部为启用状态
    ② 点击运行,输入:secpol.msc打开本地安全策略,选择本地策略,用户权限分配检查如下两点,1.拒绝从网络访问这台计算机的后面应该是空白的,这样则表示设置的用户有权限访问;2.从网络访问此计算机,双击点开后如果有Users则说明zhangsan账户具备访问权限
    以上检查具体界面如下图:
    File sharing and access methods
    File sharing and access methods
    此时我们再回到win10系统中abc文件夹下的111.txt文档,打开后,我们尝试进行内容的修改,我们将“this is aaa”改为“this is abc”点击保存,是否替换原文件,选择是,这个时候依然跳出提示框:拒绝访问。(因为此时只有读取权限)
    我们进入server2016系统中,右键abc文件夹属性,安全,zhangsan账户选择完全控制权,确定应用。这时我们再回头进行验证发现是可以更改完内容之后直接保存的,这时候我们回头仔细想一下为什么可以直接保存;我们回到server2016系统中的abc文件夹,右键点击属性,共享,高级共享,权限(此时会发现权限中有一个Everyone的选项字面上就是每一个人的意思,可以完全控制,这样是很不安全的,我们可以选择直接把他从列表中删除),然后我们对文件夹进行重新共享,再回头检查一次高级共享里的权限,发现everyone依然存才,此时我们再删除,回到win10系统在对共享的文档进行修改之后再想保存就又会提示我们文件另存,这样就又变成了无法修改。
    我们在abc文件夹的共享权限中添加zhangsan并添加读取权限,那么此时zhangsan对于文件夹权限有完全控制权,对文件夹共享有读取权,我们总结之后得到的结果就是共享的最终权限是文件本身权限和共享权限的交集。

    接下来我们还会发现在运行界面会有已经输入的历史记录,因为第一次登陆的时候已经输入过密码了,再次进入的时候就可以直接进入不用再输入密码进行身份验证了,这样其实也是不安全的,这个问题是因为微软系统中会存在缓存机制,此时我们需要做的就是清除缓存,操作如下:
    File sharing and access methods

匿名访问操作:
回到server2016服务器,选择abc文件夹,右键选择共享,选择指定特定用户,下拉小三角选择everyone,点击添加,点击共享,此时我们的everyone是用什么来宾身份来进行访问的,我们如何检查是否可以访问:
右键此电脑,点击管理,选择计算机管理,选择用户和组,选择用户,选择Guest(来宾用户)在属性中解禁用,然后这个时候我们在进到我们之前说的网络中的高级共享设置会发现密码保护共享被自动关闭。
然后在本地策略中的安全选项里,网络访问:本地账户的共享和安全模型,双击打开之后,下拉选择仅来宾,这样来宾用户就可以访问共享文件了

Hide sharing settings (that is, to let you see specific things, but still have access to, such as abc this folder):
Back server2016 server, select the abc folder, select properties, click Share, click Advanced Sharing, share name click Add at: abc $ ($ this symbol represents the hidden share), then we have to delete previous abc share name, then we go back to win10 be verified.
Click to run into the same \ 192.168.100.100 \, after this time into abc can not see this folder, and this time we want to visit, then after running the previous command plus abc $ hit Enter to go directly to a shared file abc folder to see the document:
File sharing and access methods
it is more than several file-sharing access, thank you!

Guess you like

Origin blog.51cto.com/14464303/2424381
Recommended