June 7, 201313 yr 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.
August 18, 201312 yr 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
August 18, 201312 yr 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
August 18, 201312 yr 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.
August 19, 201312 yr 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.
August 19, 201312 yr 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.