How to give permissions to local computers using computers' MAC addresses in Windows Server 2016 for file sharing

I have the following issue:

I have a server with Windows Server 2016, and I need to use it only for saving, reading, and modifying files with file sharing.

The way I have the restrictions is with logging in from client computers and logging with the local server accounts, but I need the authentication to be the MAC Addresses of the Computers clients which access to file sharing in order to be easy for the user.

Is there any way I can authenticate to access file sharing in the Windows Server with the client MAC address to give their respective permissions by MAC address from Windows Server?.


Solution 1:

I'm not sure why you would want to use the MAC address to designate share permissions but the short answer is no. MAC addresses can be spoofed so that wouldn't be a very secure setup. Anybody would be able to clone anyone else's MAC address to grant themselves access to another user's share.

You would use Active Directory Users and Computers to assign permissions on each share to either the user or machine. Also it's better to create groups/OUs and give the group permission to the file share. You would then add any user (or computer) who should have access to the file share to that group.