Hello!
First off, I'd like to say that even though I'm new here, I'm definitely not new to Linux, so no "Have you tried restarting the samba-daemon"- kind of answers please
Anyway, yesterday I noticed that my Windows 8-based HTPC wouldn't connect to my samba-shares on my Raspberry Pi. "Map network drive" works nicely, I see the "drive" in explorer, but when I try to open it, it says the drive might be corrupted or in a format that Windows can't read. So I proceeded to configure everything I could imagine in Windows, to no avail. Then I booted my iMac, and noticed it refused to connect as well :/ It says I either don't have permission to access the machine, or there are no shares.
I find this really strange, considering that this setup was working a while ago (not sure when it stopped working, I haven't used samba that much lately). I googled around a lot, and discovered that this might have to do with Samba being upraded from Samba3 -> Samba4 (?). I find this likely as my Apache-configuration also broke the other day when I updated my system, going from Apache 2.2 to 2.4. Some topics mentioned "nmbd", which I have never used before. I enabled and started it, and changed "name resolve order" to "bcast host" according to some thread I found, and then my Mac was able to discover the machine, but shares are still not available.
Here's my smb.conf (comments stripped), I'd be very gratefull if someone could tell me what to change in order to get this working again :
$this->bbcode_second_pass_code('', '[global]
workgroup = PAULINET
server string = Raspberry Pi Samba Server
netbios name = RASPI
name resolve order = bcast host
hosts allow = 192.168. 127.
log file = /var/log/samba/%m.log
max log size = 50
security = user
map to guest = Bad User
dns proxy = no
[Kirjani]
comment = WD-MyBook
path = /mnt/Kirjani
valid users = pauli
public = yes
browseable = yes
writable = yes
guest ok = yes
readonly = no
[Meriportti]
comment = Seagate-Expansion
path = /mnt/Meriportti
valid users = pauli
public = yes
browseable = yes
writable = yes
guest ok = yes
readonly = no
[Home]
comment = Home-Folder
path = /home/pauli
valid users = pauli
public = yes
browseable = yes
writable = yes
guest ok = yes
readonly = no')
Most of the lines under each share are unnecessary, I know. They're just stuff I've ended up putting there throughout the years, I've used the same configs since 2008
I also did "pdbedit -a -u pauli" in case I'd used smbpasswd before, but that didn't help either :/
EDIT: I noticed that when stripping comments, I'd accidentaly stripped the "security" and "map to guest lines" too. Sorry, added now.
Hmm... I'm noticing these errors whenever I start smbd (from /var/log/samba/smbd.log) :
$this->bbcode_second_pass_code('', '
open_socket_in(): socket() call failed: Address family not supported by protocol
[2014/03/21 16:17:09.503932, 0] ../source3/smbd/server.c:684(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address family not supported by protocol
')
Could this have something to do with my problem?