I don’t know how smbanon and security = share mix in with a root share. But I can suggest what should work. You should keep a copy of the old smb.conf and make a new one using this:
[global]
workgroup = WORKGROUP
netbios name = LS00006
name resolve order = bcast host lmhosts wins
local master = auto
preferred master = auto
os level = 32
# passdb backend = smbpasswd
# printing = cups
# printcap name = cups
# printcap cache time = 750
# cups options = raw
map to guest = Bad User
# include = /etc/samba/dhcp.conf
# logon path = \\%L\profiles\.msprofile
# logon home = \\%L\%U\.9xprofile
# logon drive = P:
security = user
# usershare allow guests = Yes
# guest account = smbanon
# guest account = root
log level = 3
# ldap suffix =
# wins server =
# wins support = No
[h]
comment = USD
path = /media/USBHDD/
read only = No
# browseable = Yes
guest ok = Yes
# writable = Yes
force user = rusart
[temp]
comment = temp
path = /home/rusart/temp
guest ok = Yes
browsable = Yes
read only = No
[r]
comment = test
path = /media/36BA-C65A
guest ok = Yes
browsable = Yes
Oh and another thing just to mind, there’s a bug in Samba daemon in 11.4, that might cause a problem, check it’s not active, run this command and report back:
su - -c "rcnmb status;rcsmb status"
(ps there are two minuses in there, it’s not a typo)
You’ve been hit by the bug. Go to Yast -->Novell AppArmor → AppArmor Control Panel → Set Profile Modes → Configure → highlight usr.sbin.smbd and “Toggle” to read “complain”. Do that also for usr.sbin.nmbd. Lock that in (Done → Done etcr).
Next go to Yast → system → system services runlevels and find nmb and smb and make sure they’re set to running=yes. If not, then toggle them to on with Enable button.
I’ve already had problem with AppArmor and thought I’ve switched it off!!!
I’ve done as you told (Togle to complain mode) and set runlevels for smb (it was on) and nmb (it was Off).
And NOW I’m able to write to my mounted USB HDD!!!
Can I just turn AppArmor off somehow? to avoid problems in future?) or this is not good idea?