I'm wondering if anyone else with a similar home network would share your smb.conf file. This is a simple setup that I'm trying to get working, It use to work until Microsoft sent the WIN10 Creator Update and SMBv1 was disabled.
The environment is two computers; a) Slackware 64-14.2+multilib with Samba 4.4.16 running wireless and a laser printer running under CUPS; b) WIN10 Pro 64 1709 all updates applied on 1G Ethernet connection. I have NOT yet applied this to the WIN10 PC
Code:
However, if you still have to use the Explorer Network in home and small
business workgroup environments to locate Windows-based computers, you can
follow these steps on your Windows-based computers that no longer use SMBv1:
Start the "Function Discovery Provider Host" and "Function Discovery
Resource Publication" services, and then set them to Automatic (Delayed Start).
When you open Explorer Network, enable network discovery when you are
prompted.
All Windows devices within that subnet that have these settings will now appear
in Network for browsing. This uses the WS-DISCOVERY protocol.
The two computers can ping each other by both IP and name, ping6 returns unknown host for name. Router assigns DHCP to both wire and wireless portions of LAN, and has DNS entries for both the a and b PC.
The WIN10 does not run SMBv1.
If I setup smb.conf to have
Code:
server min protocol = SMB2
client min protocol = SMB2
client max protocol = SMB3
Then Dolphin can not see either PC in Network. If I remove the min/max protocol of both client and server then both PC's will show in Dolphiin but access to the WIN10 folders will not show. So my question: Is this normal behavior or should Dolphin be showing at least the local PC? Is there a way to implement network browsing using SMBv2?
Concurrently smbtree shows nothing after entering the password. I notice
this error and suspect a password file issue or is it normal?
Code:
tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied
Yes I know I can still smb:/{servername} and see the other PC, but when kids or other visit they would like to print and sometimes leave me a file, and right now they have to email the file instead.
Here is my smb.conf
Code:
bash-4.3$ cat /etc/samba/smb.conf
[global]
preferred master = Yes
os level = 65
server string = %h Samba %v
workgroup = UGATE2
log file = /var/log/samba/%m.log
max log size = 50
log level = 1
logon drive = H:
printcap name = cups
printing = cups
client max protocol = SMB3
client min protocol = SMB2
server min protocol = SMB2
guest account = smbguest
map to guest = Bad User
passwd program = /usr/bin/passwd %u
unix password sync = Yes
lpq command = /usr/bin/lpq -P%p
print command = lpr -oraw -r -P%p %s
#load printers = Yes
logon home = \\%N\%U
[homes]
comment = Home Directories
browseable = No
read only = No
valid users = %S
create mode = 0664
directory mode = 0751
invalid users = root nobody smbguest
[printers]
comment = All Printers
path = /var/spool/samba
browseable = No
public = Yes
guest ok = Yes
read only = Yes
[public]
comment = Public Shareable
path = /home/public
public = Yes
only guest = Yes
writable = Yes
force group = users
create mode = 664
directory mode = 775
bash-4.3$
I've read the latest Samba4 Wiki Docs for Standalone Server and also other smb.conf configs. I've slimmed smb.conf to remove default settings which were redundant to Samba4's defaults. Adding the netbios name = parameter isn't necessary because it automatically now defaults to the machine name which is netbios complaint in my case.
Appreciate any help. Cheers.