On Tue 25/04/2023 09:10, kasak wrote:
> 
> 24.04.2023 21:01, Bjorn Ketelaars пишет:
> > On Mon 24/04/2023 18:27, kasak wrote:
> > > 24.04.2023 16:34, Bjorn Ketelaars пишет:
> > > > On Mon 24/04/2023 10:09, kasak wrote:
> > > > > i'm sorry for the noise, but samba package in openbsd has some bug 
> > > > > since 7.2
> > > > > 
> > > > > It erroneously map "nobody" as a homes share when it should not.
> > > > I remember replying to a mail from you on misc@ a couple of months ago
> > > > on the same (?) topic [0].
> > > You are right, and since then I made some research to prove my point!
> > During your research, did you use the exact same smb.conf on the
> > different samba hosts? And the outcome is that samba on OpenBSD is the
> > odd one out?
> > 
> > Are there details that you can share?
> Yes, i use exactly that config i mentioned earlier (only 5 lines). And yes,
> samba on OpenBSD is the odd one out.
> 
> I even fired up openbsd 7.1 vm to prove myself i'm not crazy:
> 
> obsd71$ uname -mrs
> OpenBSD 7.1 amd64
> obsd71$ cat /etc/samba/smb.conf
> [global]
> map to guest = Bad User
> [homes]
> browseable = no
> writable = yes
> obsd71$ smbclient -L //localhost
> Password for [WORKGROUP\kasak]:
> 
>     Sharename       Type      Comment
>     ---------       ----      -------
>     IPC$            IPC       IPC Service (Samba 4.15.9)
> SMB1 disabled -- no workgroup available
> 
> > 
> > > > > I have many other samba hosts, and I often use [homes] special share, 
> > > > > but it
> > > > > never map "nobody" as a home share.
> > > > Unfortunately I do not have experience with "other smaba hosts", and
> > > > cannot comment on them. Is it possible that samba on these hosts has
> > > > been compiled using other compile time options than on OpenBSD?
> > > > 
> > > > [0] https://marc.info/?l=openbsd-misc&m=166676711319993&w=2
> > > I can speak for all rpm based distros, for arch and for freebsd, no one of
> > > them maps nobody as a homes share.
> > > 
> > > And i've tried to figure out what's gone wrong and failed :( that's why 
> > > i'm
> > > posting here, searching for help.
> > Did you compare the samba port for, e.g., FreeBSD [0] with that of
> > OpenBSD [1]? Are there options that catch your eye?
> > 
> > [0] https://github.com/freebsd/freebsd-ports/tree/main/net/samba416
> > [1] https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/net/samba/
> > 
> since i know that odd behavior come from 7.2, i've mostly looked what has
> changed in port from 7.1 to 7.2 but did not find anything suspicious.
> 
> i have very little experience in that things :(

I did some tests using OpenBSD current and linux, both running Samba
4.17.6, and using your simplified smb.conf. Outcome is that I'm able to
reproduce (part) of your observation.

On OpenBSD current:
$ smbclient -N -U test -L 127.0.0.1

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (Samba 4.17.6)
        nobody          Disk      Home directory of nobody
SMB1 disabled -- no workgroup available

On linux:
$ smbclient -N -U test -L 127.0.0.1

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (Samba 4.17.6)
SMB1 disabled -- no workgroup available

To be honest I have no clue where this is coming from, but I will keep
my eyes open. Did you share this observation on the samba mailing list?
Maybe they can be of assistance in understanding this difference in
behaviour.

Reply via email to