These are the real contents of your file on Ubuntu.
[global]
server string = %h server (Samba, Ubuntu)
workgroup = WORKGROUP
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = Enter\snew\s\spassword:* %n
Retype\snew\s\spassword:* %n
password\supdated\ssuccessfully .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[Server Home]
comment = Fileserver Shares
path = /home
valid users = %S
create mask = 0755
guest ok = Yes
You should back up the file and then replace it. This will back it up:
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.orig
Then overwrite the original Ubuntu file with this:
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
netbios name = Ubuntu Server
name resolve order = bcast host lmhosts wins
server string = “”
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
use client driver = yes
map to guest = Bad User
local master = yes
preferred master = yes
os level = 65
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[Server Home]
comment = Fileserver Shares
path = /home
valid users = %S
create mask = 0755
guest ok = Yes
I’ve changed Ubuntu [global] to make it compatible with openSUSE (and others like it), windows and apple workstations.
To get Samba permanently “on” in openSUSE, goto Yast → system → runlevels and find smb and make sure it’s set to to “enabled” = “yes”. Do same for nmb.
Regarding the Ubuntu firewall: for the time being turn it off with this command:
sudo ufw disable
That will turn it off permanently. When good browsing has been established, you can turn it back on with this
sudo ufw enable
Regarding the openSUSE firewall, this command please run it and post results back here so I can see if it’s properly configured (you might have to use copy/paste to avoid typos):
cat /etc/sysconfig/SuSEfirewall2 | egrep "FW_CONFIGURATIONS_EXT=|FW_DEV_EXT="
Next thing: now that I understand your Ubu server and openSUSE client arrangement, you should change this line in the openSUSE smb.conf “preferred master = yes” to this form “preferred master = auto” which is the best for for a “client”.
Finally, I have reservations about the stanza you put into Ubuntu’s smb.conf. Is it meant to make available to any user the contents of a particular home directory on the Ubu server without needing to log in over the Samba network? Or what exactly do you want to achieve there?