- ESXi 6.5
- Ubuntu 22.04.5 LTS
Update = I was able to connect through the smbclient to a share on my computer. So, at least Linux can access Windows, but Windows cannot access Linux.
I can copy files to Windows from Linux. It seems that something must be corrupt on the Linux system for it not to allow Windows to access it.
But, at least I can access Windows from Linux, and am successfully copying the important files over. Very happy right now. However, I still would like to dive into why Linux does not allow Windows to access it.
I set up the Ubuntu Server a few years ago.
I was able to work with the files through Explorer and edit them, which was amazing, as Linux does not have the best text editors for the core versions.
Now, today, I can no longer view the Linux shares. I can ping it, but cannot access it. In Windows network, I can see all 28 systems in the network, but cannot see the Linux system.
I get this error when trying to reach the Linux share.
[Window Title] Network Error
[Main Instruction] Windows cannot access \\192.168.5.5
[Content] Check the spelling of the name. Otherwise, there might be a problem with your network. To try to identify and resolve network problems, click Diagnose.
[V] See details [Diagnose] [Cancel]
[Expanded Information] Error code: 0x80070035 The network path was not found.
I get this same error, whether I use the sharedName or without it.
I watched several videos on setting up the share, and it is identical to what I already have set up. So, what am I missing?
I read that enabling NFS on Windows would work, so i tried that, and still nothing. Just to make sure it was not an issue with my laptop, I also installed NFS on my Desktop system as well, still nothing.
I've rebooted the Linux system several times. I've done everything that I've read to do, but nothing seems to work.
I found this other Super User question's answer, and attempted to apply it:
[Global]
min protocol = SMB2
protocol = SMB2
Rebooted SMBD, and then rebooted the server, and still no share available.
I am planning a 3-node Nginx installation on another server, and I need the files that are on this Linux server.
I am not the best at Linux, but if given proper instructions, I can find my way around it.
SMB.CONF
[global]
#Read that adding min and max was the best way??
min protocol = SMB2
max protocol = SMB2
client min protocol = SMB2
client max protocol = SMB2
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
server role = standalone server
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
#======================= Share Definitions =======================
[Linux05-Web]
comment = LinuxCore05 Inetpub
path = /srv/web/Inetpub/wwwroot/stream.domain.com
valid users = linux05
browsable = yes
guest ok = yes # This was set to "no" I changed it last night.
read only = no
writeable = Yes
write list = linux05
create mask = 0664
directory mask = 0755
force user = www-data
I am only supplying one of the shares, as there are 5 shares. I also checked, and my SMB version is 4.15.13-Ubuntu. I read that from version 4.x and up, it disables SMB v1 as it is insecure.
I checked the Firewall.
ufw status = inactive
I honestly don't remember disabling it, or I might have sometime over the year of trying to access it. But still, with it inactive, I cannot access it.