Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You should change the Fedora hostname. By default samba uses the hostname as netbios name which in your case is localhost (i.e bog@localhost) which can cause problems. You can also add a netbios name directive in the smb.conf file too i.e netbios name = MYSERVER.
Make sure the Fedora firewall if running allows samba traffic. I believe by default it only allows ssh traffic.
Another way to check if your server is visible from Win 10 is using the cmd box net view command.
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Hi Rotwang2,
Adding to michaelk's excellent advice, I suggest you verify that both your Win10 system and Fedora samba setup are using compatible versions of the smb protocol. Recent changes on the Microsoft side have caused some previously working setups to fail, simply because of this.
If you are unsure what I am referring to - please say so and we can provide a more detailed explanation.
Adding to michaelk's excellent advice, I suggest you verify that both your Win10 system and Fedora samba setup are using compatible versions of the smb protocol. Recent changes on the Microsoft side have caused some previously working setups to fail, simply because of this.
If you are unsure what I am referring to - please say so and we can provide a more detailed explanation.
Cheers !
Here's an update:
As for the two of them using compatible versions- remember, it was working fine until like 24 hours later when I restarted. And I have windows updates turned off. So presumably the smb protocols are the same.
As for a samba password? No I never set one. Neither now, nor before when it was working. (And if I had, wouldn't windows prompt for a password?)
net view:
C:\WINDOWS\system32>net view
There are no entries in the list.
C:\WINDOWS\system32>
Quote:
You should change the Fedora hostname. By default samba uses the hostname as netbios name which in your case is localhost (i.e bog@localhost) which can cause problems. You can also add a netbios name directive in the smb.conf file too i.e netbios name = MYSERVER
Ok I've never changed any of that back when it was working either.
If I do change it to MYSERVER (which I would suggest is a bad idea because it violates occam's razor- we'd be actually *adding* complexity to something that used to work before), would that change how I try to connect from windows?
Grab the Nirsoft Event Viewer to format the Windows 10 log. It is not as easy to read as the older versions were but the Nirsoft utilities help (they are stand alone and don't need installing)
Grab the Nirsoft Event Viewer to format the Windows 10 log. It is not as easy to read as the older versions were but the Nirsoft utilities help (they are stand alone and don't need installing)
Oh very cool- well right now I'm in the normal Event Viewer and I don't know.... what to click on. I poked around but there's a lot to choose from and every choice looks the same. I don't want to slap at the problem. Does anyone know where share connection attempts would show up? (I don't know windows internal stuff at all, I'm good with linux for 20 years but windows I'm clueless.)
I googled for "windows samba log", but windows doesn't even know it's connecting to a samba share, right? I did find this for windows 8:
But that's for win8, and even if it applied to win10- well, I have to emphasize that it worked fine until I restarted the linux server, so, once again, that's violating/complication to occam's razor. This all used to work fine...
Hey- one thing that might be helpful in terms of password:
If I try mapping a drive (as opposed to "Add a network location"), it will prompt for creds. I tried giving it both the password for my win10 user and the password for the linux account (username is the same, "bog"). No go in both cases.
Also I just tried setting smbpasswd, and the old password was the same as the new one I typed. I tried again, still no go.
Do you think SElinux perms might be the problem? (I had done this before but maybe it didn't "stick"? So I tried doing it all over again and nothing's changed):
I'm running Fedora 26 and have no problems connecting with Windows 10. I might need to install Fedora 27 just to see if there is a difference. selinux if running will prevent samba from connecting to the home directory and anything below like your winshare if they are not configured.
Can you connect to the share from the fedora PC itself? Either with the file browser or smbclient?
A quick search has not found much information about your error. "The folder you entered appears to be invalid. Please choose another."
Update:
I installed Fedora 27 workstation in a VM and could connect to a home share once I ran the setsebool command and added a samba password.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.