[Samba] Mapping user by ip address
Rowland Penny
rpenny at samba.org
Fri Oct 5 16:38:25 UTC 2018
On Fri, 5 Oct 2018 13:17:34 -0300
HugLeo via samba <samba at lists.samba.org> wrote:
> Like that? Just two shares with the same path? Will be
> acceptable/stable? I just need to inform for each user the correct
> shared name.
>
> [share1]
> hosts deny = ALL EXCEPT 192.168.0.
> path = /share
> public = yes
> guest ok = yes
> only guest = yes
> writable = yes
> printable = no
> create mask = 0775
> directory mask = 0775
>
> [share2]
> hosts deny = ALL EXCEPT 192.168.0.10
> path = /share
> public = yes
> guest ok = yes
> only guest = yes
> writable = yes
> printable = no
> create mask = 0775
> directory mask = 0775
> browseable = no
> force group = private
> force user = private
>
>
No, they would have to be two shares with two different paths, there is
also a 'hosts allow' parameter.
It might be a good idea to read 'man smb.conf' where you can find
interesting things like 'public = yes' and 'guest ok = yes' being the
same thing.
Rowland
More information about the samba
mailing list