I installed Leap 42.1 on my generic quad-core desktop. I had Samba working fine under 13.1. Thought I copied the smb.conf file over properly but have been playing around with it since upgrading. My network consists of a couple of Linux servers and a couple of windows 10 machines.
As a side note, Apache2 works. I run with a fixed IP address and use AT&T U-Verse. My internal address for this machine is 192.168.1.1. The 192.168.1.1 address is defined as an alias. The U-Verse router provides this machine with it’s fixed IP address using DHCP.
ifconfig shows me:
eth0 Link encap:Ethernet HWaddr 8C:89:A5:10:A0:27
inet addr:104.11.35.169 Bcast:104.11.35.175 Mask:255.255.255.248
inet6 addr: fe80::8e89:a5ff:fe10:a027/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2273566 errors:0 dropped:60 overruns:0 frame:0
TX packets:1207326 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1923530292 (1834.4 Mb) TX bytes:192031745 (183.1 Mb)
eth0:loca Link encap:Ethernet HWaddr 8C:89:A5:10:A0:27
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:15779 errors:0 dropped:0 overruns:0 frame:0
TX packets:15779 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1937480 (1.8 Mb) TX bytes:1937480 (1.8 Mb)
My smb.conf is:
smb.conf is the main Samba configuration file. You find a full commented
version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
samba-doc package is installed.
[global]
workgroup = WORKGROUP
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
usershare allow guests = No
security = user
encrypt passwords = yes
server string = “”
netbios name = scott1
name resolve order = bcast host lmhosts wins
dns proxy = no
usershare owner only = False
usershare allow guests = no
usershare max shares = 100
use client driver = yes
local master = yes
os level = 65
preferred master = yesadded below
passdb backend = smbpasswd wins support = no
[homes]
comment = %u’s Home Directory
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
The results of a smbclient -L localhost -U% shows:
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.2.4-21.3-3689-SUSE-SLE_12-x86_64]
Sharename Type Comment --------- ---- ------- users Disk All users print$ Disk Printer Drivers fa Disk Foster Aviation IPC$ IPC IPC Service ("") MFCJ825DW Printer MFCJ825DW QL-570 Printer QL-570 HL4070CDW Printer HL4070CDW
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.2.4-21.3-3689-SUSE-SLE_12-x86_64]
Server Comment --------- ------- BRN001BA99AA179 CHRISV-HP SCOTT1
Workgroup Master --------- ------- WORKGROUP SCOTT1
As a note for the above, I have my Windows 10 machine running when these commands were done. It’s name is SCOTT2W but obviously is not being shown. Oddly, the other Windows 10 machine is.