openSUSE Samba Server
How to configure Samba Server in openSUSE 11.4
Two ways to configure Samba Server in openSUSE, using YaST (easy way) or manual (more options).
#############################################################
Samba Server using YaST:
Run yast at Terminal or GUI
# yast
YaST Control Center
Network Services -> Samba Server
Enter Workgroup or Domain Name, Next
Samba Server Type
Select: (x) Not a Domain Controller, Next
Under Samba Configuration screen
configure Start-Up, Shares, and Identity.
Start-Up
Service Start
Select: (x) During Boot
under Share
Add the share directory
Under Identification
Give it a share name that MS Windows can map, Share Name
Share Path, browse to share diretory.
Select Allow Users to Share Their Directories
OK
#############################################################
Configure Samba Server by Editing smb.conf
Here’s a screen shot of smb.conf with its default settings in openSUSE 11.4, some of the share directories were cut off. The main sections is the [global], the others in brackets are optional.
The share directories are in brackets.
To create a samba share directory (ex: share) with everyone access, edit smb.conf
# vi /etc/samba/smb.conf
append smb.conf with the following:
[myShare]
inherit acls = Yes
path = /srv/share
read only = No
Create a share directory under /srv
# mkdir /srv/share
Change file permission (unsecure)
# chmod 777 /srv/share
Note: In openSUSE 11.4, Novell AppArmor needs to be configure for smbd and nmbd to be permitted.
Run Yast
From Novell AppArmor Screen, select “AppAmor Control Panel”
Under “Configure Profile Modes“, select “Set profile modes [Configure]”
In the Profile Mode Configuration screen, set the Mode to complain for:
usr.sbin.nmbd and usr.sbin.smbd
In Windows system, map the network share using NET USE:
Syntax: net use [drive letter] [\\samba ip address\sharename] /user:user@samba_ip_address
Ex: net use s: \\192.168.1.20\sambashare /user:root@192.168.1.20
It will prompt for the password



Thank you for your hint!!! I have wasted two days trying to figure out why an openSUSE 11.3 Samba setup would not work in openSUSE 11.4.
Setting the Mode to complain for usr.sbin.nmbd and usr.sbin.smbd fixed the problem.
Great, AppArmor was my problem. Thank You.
As Nick says Thankyou Thankyou thankyou…. I have set up samba on every build of suse since 7.0, so you can see my fustration after 4 hrs of head scratching and conf file comparing between 11.3 setup and 11.4. This is really bad, why is this not taken care of by YAST when samba is enabled ???
What else is AppArmor stomping over I wonder ??
I just wanted to tell you THANK YOU THANK YOU THANK YOU for this. I have been trolling the net for HOURS trying to figure out why the same samba setup I had in openSUSE 11.3 didn’t work in 11.4. Thank you so much for letting me in on the AppArmor bit. It seems like this issue should be getting much more attention online. Or maybe I’m just an idiot. Anyway, THANK YOU THANK YOU THANK YOU!!!!