> > > 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?
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
> > > 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. > > I fix it to %U|%G|%Istill failed. It always shows input/output error when I run $touch file