Introduction

This article was started to give some general advice on security considerations and is not an exhaustive review of samba security.

/etc/samba/smb.conf

# hosts allow = 127.0.0.1 192.168.1.0/24
hosts allow = 127.0.0.1 192.168.1.1 192.168.1.2
hosts deny = 0.0.0.0/0

When setting up a Samba share, you can limit the users who have access to your share

[private]
        comment = Private Share
        path = /path/to/share/point
        browseable = no
        read only = no
        valid users = user1 user2 user3

Now only samba users user1, user2, and user3 will have access to the share "private".

Firewall

Configure your firewall (iptables) to limit access to your server. Samba uses ports

Samba/SecuringSamba (last edited 2010-12-27 18:16:49 by 190)