Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

anonymous shares not working in unRAID v5.0-RC12a

Featured Replies

Just thought I'd share my experience with SMB shares in the latest beta.

 

With unRAID v4.7, I was able to mount shares from either my Win7 PC or my Popcorn Hour media player. However, after upgrading to unRAID v5, I could only mount from Win7. I completely lost the ability to mount any shares from the Popcorn Hour.

 

To debug, I used smbclient to list my shares. When I did, I got the following, regardless of the different "guest" configuration options I tried:

 

# smbclient -L localhost -N
WARNING: The "null passwords" option is deprecated                                                                              
Domain=[WORKGROUP] OS=[unix] Server=[samba 3.6.10]                                                                              
tree connect failed: NT_STATUS_ACCESS_DENIED                                                                                    

 

I didn't really key into the warning at first. But, after a while, I decided to look into it. Sure enough, /etc/samba/smb-names.conf had the line "null passwords = Yes". As soon as I removed that line and restarted smb, lo and behold, I could once again mount my unRAID box. I really don't understand why this line would cause trouble with anonymous shares -- especially since Win7 clearly had access them.

 

Anyway, hope this was useful if you had issues mounting your unRAID v5 shares.

  • 2 months later...

Surely this cant be the official means to do this?

 

I achieved the same end goal but adding ""null passwords = No" to "sbm-extra.cfg".

 

Update: smbclient works now but anon shares dont. I am not sure how I managed to make this work before on my other array hmmm

  • Author

Can't say this is "official" since I'm in no way related to LimeTech.

 

But, I found that I needed to remove the "null passwords" line altogether. If it existed at all, anonymous shares would never work. I wound up creating an rc script so everything would be functional after a reboot. It works beautifully on unRAID 5.0-rc14. Can't say anything about rc15 or rc16 since I haven't upgraded yet.

 

$ cat /boot/custom/etc/rc.d/S20fix-smb

#!/usr/bin/bash                                                                                     
                                                                                                    
###                                                                                                 
### Fix /etc/samba                                                                                  
###                                                                                                 
### The samba configuration in unRAID v5 prevents anonymous
### connections. Fix the config file to make them work.
                                                                                                    
SAMBA=/etc/samba                                                                                    
SMBNAMES=${SAMBA}/smb-names.conf                                                                    
SMBNAMESOLD=${SAMBA}/smb-names.conf.old                                                             
mv ${SMBNAMES} ${SMBNAMESOLD}                                                                       
sed -e 's/^\(\s*null\s*passwords\s*=.*\)$/#\1/' ${SMBNAMESOLD} > ${SMBNAMES}                        
                                                                                                    
smbcontrol reload-config smb                                                                        

This is really annoying me now.

 

I simply cant believe this is the entire thread on this topic... surely this MUST have been discussed to death already.

I suspect you would get more responses if you were on the 5.0RC16c release rather than the 5.0RC12a that you say you are running. 

I am on 16c and I never said i was on 12a, I simply replied to a long term  open post on the topic

 

But to be fair I never said I was either.

 

Anyways since this topic isnt all over the forum I suspect this is an edge case. The trick is why and how

 

Edit:

 

smbcontrol reload-config smb   

 

should probably be

 

smbcontrol smbd reload-config

 

however this whole process doesnt work for me at all although I am trying to do it manually without reboot

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.