Web lists-archives.com

Re: [Samba] Mapping user by ip address




On Fri, 5 Oct 2018 17:56:35 -0300
DarkZad via samba <samba@xxxxxxxxxxxxxxx> wrote:

> In Session Global put this
> 
> map to guest = Bad User
> 
> [PUBLIC]
>     comment = Arquivos Publicos
>     path = /home/Public
>     read only = no
>     writable = yes
>     public = yes
>     create mask = 777
>     directory mask = 777
>     force user = root
>     force group = root
>     browseable = yes
> 
> 

That will not work for what the OP requires, he needs two shares.

Can I also suggest you read 'man smb.conf' ?

'read only = no' and 'writable = yes' mean the same thing, so you do
not need both, pretty obvious if you think about it.

'public = yes' is, again, a synonym for 'guest ok = yes' and likely to
be removed, so get used to using the latter.

Finally, all shares are browsable by default, so you don't need
'browseable = yes'

Rowland



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