LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Samba Mystery Share (https://www.linuxquestions.org/questions/linux-server-73/samba-mystery-share-4175735838/)

danabooth 04-09-2024 12:39 PM

Samba Mystery Share
 
I made a new fileserver, it is not yet live .. I simply copied our smb.conf file from our old box with a couple of minor adjustments and all works well, _however_, if I look at that box with a windows file explorer, among the shares that should be there, is one called "nobody". I have no clue why it's there, and it can't be entered. Logs don't tell me anything

Debian 12 / Samba 4.17.12

Any thoughts?

frankbell 04-09-2024 09:25 PM

This thread from the Ubuntu forums might be helpful.

michaelk 04-09-2024 10:01 PM

There are only a couple of threads with a similar problem that pop up in a search but nothing really points to a cause. It might be a samba bug but I am guessing its rarity would make it hard to debug. I am guessing that you do not have a home directory, user share or anything else in your smb.conf that might create a share called nobody. I have several systems running debian 12 with samba and never have seen a rouge share yet but must are pretty much stock configuration.

rkelsen 04-09-2024 11:36 PM

The cause of this seems to be that the smb.conf file shipped with Debian enables the [homes] automatic shares.

If you want to keep that feature, then the solution would be to add the following "share" to smb.conf:
Code:

[nobody]
        browseable = no

Followed by:
Code:

# systemctl restart smbd nmbd
Credit for this solution: https://forums.debian.net/viewtopic.php?t=154522

michaelk 04-10-2024 04:46 AM

I stand corrected I can see the nobody share via linux file browser but not Windows. I guess I never tried which is strange... But yes adding a fake share is the workaround.

rpenny 04-10-2024 05:00 AM

It looks like you have the 'homes' share in use and have connected anonymously, the guest user is 'nobody', so you are being shown the home directory share for 'nobody'.

danabooth 04-10-2024 06:28 AM

Thanks all, the
```
[nobody]
browseable = no
```
removed the "nobody" share from view


All times are GMT -5. The time now is 09:35 PM.