I am trying to access shared folders located on a USB flash drive in my home router through Windows Network. I can access and edit them with other Ubuntu and Windows 10 computers on the LAN but not with this gnome desktop. The folders show up in Nautilus through the smb://192.168.1.1 path. However, none of the passwords I try will open them. I’ve added samba user and edited the config file to guest users: YES and force user john, and added log level. I put samba in the allowed column in the firewall config. Not sure what else to do.
Does anyone have any ideas?
[global]
workgroup = JMFiles
passdb backend = tdbsam
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:
usershare allow guests = YES
log level = 1 auth:3
force user = john
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
Hi and welcome to the Forum 
Likely the samba security not working with the router samba (old, less secure version).
Open gnome-terminal and run the samba client with some verbosity to see what is failing to connect…
smbclient -d3 //<server>/<user>
Looks like no WINS servers listed… When I click on Windows Network in Nautilus: *Unable to access location. Failed to retrieve share list from server: No such file or directory. *But the files appear when I enter the smb path in the lower address bar.
john@linux-795l:~> sudo smbclient -d3 //RouterServer/john
[sudo] password for root:
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section “[global]”
Can’t find include file /etc/samba/dhcp.conf
added interface wlan0 ip=192.168.1.45 bcast=192.168.1.255 netmask=255.255.255.0
Client started (version 4.7.11-git.153.b36ceaf2235lp150.3.14.1-SUSE-oS15.0-x86_64).
resolve_lmhosts: Attempting lmhosts lookup for name RouterServer<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name RouterServer<0x20>
Connecting to 192.168.1.1 at port 445
Server does not support EXTENDED_SECURITY but ‘client use spnego = yes’ and ‘client ntlmv2 auth = yes’ is set
Anonymous login successful
Enter JMFILES\root’s password:
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
After days of searching for a solution to my login problem, trying every solution and idea I could come up with, I finally opened my lan guest access so unauthorized users can access my folders. It works that way, which is okay, I guess. I trust my roommate and he doesn’t know about mapping networks on his Windows system, anyway. At least everything works on my Ubuntu and Windows computers. I don’t know the difference in security with Leap and the others…
OpenSUSE is so much trouble, I find it an interesting challenge. 
I’ve been searching through solutions for quite a while now and finally hit on something that works better than leaving my lan open. With the router guest access disabled, I get “Failed to retrieve share list from server. Connection refused.” If I get farther than that, I can’t get a password accepted for access to the folder. However, one of the outputs above notes ‘client use spnego = yes’ and ‘client ntlmv2 auth = yes’. I simply added a line to the smb.config file: “client use spnego = no”. And now it works. Hope this helps somebody.
Well done and thanks for sharing your findings here. 
Forgot to mention I rebooted system after change to smb.conf file.
Restarting samba should be all that is necessary after making changes to the configuration.
sudo systemctl restart smb.service