Web lists-archives.com

Re: [Samba] Mapping user by ip address




On Fri, 5 Oct 2018 13:17:34 -0300
HugLeo via samba <samba@xxxxxxxxxxxxxxx> 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

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba