How can I restrict access in Samba?

Updated -

In Samba you can restrict access via TCP/IP and/or via users/groups. The hosts allow field can be used in the [global] section to limit access via TCP/IP to the entire Samba server. This option can also be used on a per share basis.

You can restrict access via users/groups on a per share basis. The example below shows a bare bones smb.conf file that only allows...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content