[Samba] need help to find bug

Илья Коскин kasakoff87 at gmail.com
Mon Jul 3 12:01:22 UTC 2023


hello everyone!

I'm using samba on OpenBSD and there is unusual behavior in it!

The problem is [homes] share, it erroneously map nobody as a home share
for guest user.

I noticed this with upgrading from 4.15 to 4.17.

Please have a look at this simple config:

---

[global]
map to guest = Bad User

[homes]
browseable = no
writable = yes

---

With this config I have this listing:

-----

[kasak at kasakoff ~]$ smbclient -L localhost
Password for [WORKGROUP\kasak]:

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

-----

And this was from 4.15.9:

-----

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 never seen "nobody" home share earlier. And it is not usable
anyway, even if "nobody" have a home dir.

Option "valid users" does not change this behavior whatever I set there.

I thought that problem was with bsd, but accidentally I found similar
bug on "redos linux".

Unfortunately I cannot found sources of redos packages to compare why
this happened.

Will be grateful for any help!
Thanks in advance!



More information about the samba mailing list