[Samba] Mapping user by ip address

Rowland Penny rpenny at samba.org
Sat Oct 6 08:28:46 UTC 2018


On Fri, 5 Oct 2018 17:56:35 -0300
DarkZad via samba <samba at lists.samba.org> 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





More information about the samba mailing list