I recently moved a RAID array from a small server running openSUSE 11.3 to a new server running openSUSE 11.4. I had a Samba share on the last computer with a share for the RAID array. After getting everything up and running with the OS I moved on to getting Samba set up. I had the smb.conf file from my last server and figured it might have to be tweaked just a little bit but that it should work just fine. I was wrong. I spent about three hours banging my head against a wall and trolling the net for information about why I couldn’t even see my server from a Windows client. What was the difference between the two OSs? Why was Samba not working with ANY configuration changes I made, even cutting the smb.conf file down to the bare minimum:
[global]
workgroup = WORKGROUP
netbios name = Server
security = user
[data]
comment = Server Share
path = /srv
read only = Yes
guest ok = Yes
I finally found the answer here: openSUSE Samba Server | ConfigNotes where I learned that there’s a slight difference with Samba in openSUSE 11.4 over 11.3. For those who don’t want to click the link, here’s the gist of it. Novell AppArmor defaults to squashing Samba unless told to do otherwise now. Here’s how to do it.
yast
Select “AppArmor Control Panel” then “Configure Profile Modes” and the “Set profile modes [Configure]” In the Profile Mode Configuration screen, set usr.sbin.nmbd and usr.sbin.smbd for “complain” instead of “enforce”. Problem solved. My Windows machines could suddenly see my Samba shares again.
Anyway, I hope that this helps someone. I’m fairly beginner when it comes to openSUSE so this is probably just common knowledge to most of you here.