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 :(

Reply via email to