I am stumped. After hours of time I haven't made any progress. I am getting the following error. Running Ubuntu 22.04. What's crazy is I have this working on another machine running the same version. I just don't know what I am doing wrong now. I've tried more than one instance of Ubuntu and have the same issue. I initially thought it was because the share was on a second hard drive but I took that out of the picture by unmounting it and sharing a folder on the same OS drive, but still getting the same error.
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
This happens using smbclient from an other Ubuntu instance and from windows.
smbclient //titan/share -U samba
Password for [WORKGROUP\samba]:
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
Here is my smb.conf.
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
server role = standalone server
obey pam restrictions = yes
# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
unix password sync = yes
# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<[email protected]> for
# sending the correct chat script for the passwd program in Debian Sarge).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
pam password change = yes
# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
map to guest = bad user
[share]
comment = share
browsable = yes
read only = no
path = /home/samba
create mask = 775
directory = 775
valid users = samba
Pemissions are 777 all the way up the path. SELinux is not involved and AppArmor has no profile set for samba.