SAMBA IP address authentication?

Posted on

SAMBA IP address authentication? – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about ip, samba, linux, network-attached-storage, .

I have a linux server running Samba to serve as a NAS. I would like only certain IP’s to access certain files in the shares. Can this be done? Appreciate it.

Solution :

You could edit: /etc/samba/smb.conf
and edit the Samba global variable: hosts allow.

Example: hosts allow = 192.168.2.1 192.168.2.10 192.168.2.11

You can use the hosts allow directive at the share level to limit access to shares from particular hosts in your smb.conf.

[some share]
hosts allow = 192.168.1.10, 192.168.1.23
...

Note that valid user credentials are also required.

Leave a Reply

Your email address will not be published. Required fields are marked *