smbaccess is used to restrict access to a Samba server from clients with certain hardware network addresses. However, this mechanism only works if the client and the server are operating in the same subnet with a direct network interconnection or in a switched network environment since the hardware network address is determined from the IP-number using the arp-cache visible in /proc/net/arp under Linux. smbaccess is invoked during the login process. If access according to the access rule is not granted, a non-zero errorlevel is returned as error code and the login process is stopped.