[Samba] [Bug] Cannot create file but read/write is ok
Rowland penny
rpenny at samba.org
Thu Aug 8 08:43:23 UTC 2019
On 08/08/2019 09:15, lampahome wrote:
>
>
> First, this is useless: 'public = yes' (which is really 'guest ok =
> yes') for two reasons, you also have 'valid users = ppp', so only
> 'ppp'
> can connect, but even if that wasn't there, it wouldn't allow guest
> access because you do not have 'map to guest = bad user' in [global].
>
> As for '%g', have you created a Samba group for ppp's primary
> group and
> mapped ppp's primary group to this ?
>
> I do smbpasswd -a ppp.
> Should I do something else?
Well, you could come round and clean my glasses ;-)
I totally misread '%U:%g@%I'
%U session username
%g primary group name of %u.
Notice the difference in case of '%U' & '%u'
Try '%G' instead, this is the primary group name of %U.
Rowland
More information about the samba
mailing list