So I have an unusual problem that I have been fighting with for literally weeks now.
Let me establish the following prior to elaboration:
- The Samba server is running Ubuntu Server 16.04
- All the client machines are Windows 7
- All of the Windows clients connect by a single user (Stupid for security I know but it was out of troubleshooting).
So, I have a Samba share setup so that all the clients can view/read/execute/blah blah the files within said share. (The next part is sort of like the age old question of "What came first? The chicken or the egg?") I mapped the share as a drive in Windows 7. I can not even view the mapped drive unless I make some sort of direct connection into the Ubuntu server itself. In this case, I use Cygwin to establish an SSH connection into the server from any one of the Windows 7 client computers. Once I send the SSH connection to the server, the Samba share is accessible and all of the share's contents can be used and everything is all groovy.
If I reboot the client that I made the SSH connection from, the Samba share is no longer accessible UNTIL I make another SSH connection.
I'm not questioning SSH here specifically, this is just what I use in order to edit /etc/samba/smb.conf.
- I have opened the Samba port in iptables and made the rule persistent
- I have added "server signing = auto" to the smb.conf file as mentioned here
- I have set the parameter in LPO on one of the local Windows machines mentioned here to "ALLOW ALL"
- I have made the the "security" parameter set to "ADS" and "domain"
None of these have done squat. At this point, I am confused as to whether or not this has anything to do with the Samba server but merely the Windows clients.
The following smb.conf parameters have been shortened to include all of the parts that were I have tampered with out since I installed Samba in the first place.
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
security = ADS
workgroup = [wkgp]
####### Authentication #######
server role = auto
[share]
path = /home/[user]/[share]
valid users = [user]
read only = no
browseable = yes
create mask = 0644
directory mask = 0755
server signing = auto
hostname lookups = yes
hosts allow = 192.168.X.
public = yes
force user = [user]
Please let me know if there is anything else needed in order to better understand the problem. Keep in mind, I am using local machine logins on the Windows clients and a workgroup.
Also, whenever I run "smbclient -L localhost -U [user]", I get the following:
session setup failed: NT_STATUS_NO_LOGON_SERVERS