03-25-2018, 05:51 AM
I'm having a heck of time trying to write a file from Linux to Windows 10.
I've installed Samba on Linux Lite and I've got it up and running to the point where I can see the Linux computer from the Windows 10 computers. I actually have 3 Windows 10 computers and I can see the shared files and folders on the Linux machine from Windows 10 with no problem. I can also read and write files to the Linux machine from the Windows machines.
What I can't do is see the Windows machines or shared folders on the Linux machine. In short, I can't read or write a file to a Windows machine from the Linux machine. I've been trying for over a week now with no progress. I'm even writing a program in Python to write files to the Windows machines, but even that won't work. I don't even get an error. It just acts like it wrote the file but the file never shows up at the destination path.
In fact, this is what I really need to do. I need to have Python write files to the Windows computers. But as things are I can't do anything from Linux. The only way to get a file over to Windows is to go to a Windows machines and read it from there. That works, but that's no good.
Here's a copy of my smb.conf file:
I've been trying all manner of things from videos I've watched and websites I've searched. But nothing works.
I even installed winbind as someone suggested this would solve the problem but no luck with that either.
I don't know what winbind does but it installed and I rebooted and still nothing.
I had changed one of the lines above to:
Again someone told me to do that. But that didn't help either.
I even tried adding the line:
But that didn't do anything either.
I'm just at a loss here. I've spent a week working on this with no progress at all. I'm getting depressed here.
Almost everything I find on the Internet is with people not being able to see the Linux shares from Windows. I have no problem with that. That part is working for me just fine. So the Linux machine is on the network and sharing files. It just can't see the Windows machines. I've even tried dropping the firewall on the Windows machines but that didn't work either. I also wouldn't want to have to leave the firewall down anyway. But that doesn't help so it's unlikely that's the problem.
Also as a final note, I don't think it has anything to do with permissions. I have all my Windows set up with shared folders that do not require passwords. So I'm not even using passwords anyway.
I've installed Samba on Linux Lite and I've got it up and running to the point where I can see the Linux computer from the Windows 10 computers. I actually have 3 Windows 10 computers and I can see the shared files and folders on the Linux machine from Windows 10 with no problem. I can also read and write files to the Linux machine from the Windows machines.
What I can't do is see the Windows machines or shared folders on the Linux machine. In short, I can't read or write a file to a Windows machine from the Linux machine. I've been trying for over a week now with no progress. I'm even writing a program in Python to write files to the Windows machines, but even that won't work. I don't even get an error. It just acts like it wrote the file but the file never shows up at the destination path.
In fact, this is what I really need to do. I need to have Python write files to the Windows computers. But as things are I can't do anything from Linux. The only way to get a file over to Windows is to go to a Windows machines and read it from there. That works, but that's no good.
Here's a copy of my smb.conf file:
Code:
#
#======================= Global Settings ====================================
[global]
workgroup = WORKGROUP
name resolve order = bcast host
server string = Linux Lite Shares
netbios name = Presario-CQ57
security = user
encrypt passwords = true
username map = /etc/samba/smbusers
map to guest = bad user
guest account = nobody
dns proxy = no
#======================= Share Definitions ===================================
[liteshare]
comment=Linux CQ-57 Share
path = /home/%U/share
browsable = yes
writable = yes
only guest=no
create mask=0777
directory mask=0777
public = yes
[100_Robo_Pas]
comment=Linux CQ-57 Share
path = /home/%U/100_Robo_Pass
browsable = yes
writable = yes
only guest=no
create mask=0777
directory mask=0777
public = yes
I've been trying all manner of things from videos I've watched and websites I've searched. But nothing works.
I even installed winbind as someone suggested this would solve the problem but no luck with that either.
Code:
apt-get install winbind
I don't know what winbind does but it installed and I rebooted and still nothing.
I had changed one of the lines above to:
Code:
name resolve order = wins bcast host # (adding the wins)
Again someone told me to do that. But that didn't help either.
I even tried adding the line:
Code:
winbind enum groups = yes
I'm just at a loss here. I've spent a week working on this with no progress at all. I'm getting depressed here.
Almost everything I find on the Internet is with people not being able to see the Linux shares from Windows. I have no problem with that. That part is working for me just fine. So the Linux machine is on the network and sharing files. It just can't see the Windows machines. I've even tried dropping the firewall on the Windows machines but that didn't work either. I also wouldn't want to have to leave the firewall down anyway. But that doesn't help so it's unlikely that's the problem.
Also as a final note, I don't think it has anything to do with permissions. I have all my Windows set up with shared folders that do not require passwords. So I'm not even using passwords anyway.