LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2022, 11:58 AM   #16
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936

Can you manually access the PC from dolphin

To enter a manual address:
Press ctrl -> l

In the URL box type in:

smb://IP-address <press enter>

Do you see the shares?
 
Old 03-29-2022, 12:28 PM   #17
Rodrigo7
Member
 
Registered: Aug 2011
Distribution: Kubuntu
Posts: 82

Original Poster
Rep: Reputation: Disabled
Just tried that, and it didn't work either.

Some PCs just keep showing "Loading files" endlessly without ever actually displaying anything, while others ask for a password and if I bypass that then access is denied. In either case, nothing visible happens in Dolphin the next time I try.
 
Old 03-29-2022, 02:47 PM   #18
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,471
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Why are you still using SMBv1? You don't need it to get this working. It was removed from Windows for a reason.

After switching SMBv1 off, the next thing would be to switch off the firewalls on all machines connected to your router. Use the firewall built into your router to protect your whole network.

After doing these things, you should be able to use the SMB browser in Dolphin to view your shares, by entering:

smb://192.168.x.x/sharename

Into the address bar. If it doesn't work on Dolphin, try Konqueror instead. You will need to enter the user name and password for the shares you want to access. It won't work without doing this.

Last edited by rkelsen; 03-29-2022 at 02:50 PM.
 
Old 03-29-2022, 04:03 PM   #19
Rodrigo7
Member
 
Registered: Aug 2011
Distribution: Kubuntu
Posts: 82

Original Poster
Rep: Reputation: Disabled
How can I tell if SMBv1 is being used?

Separately... Up until just a couple of weeks ago, I didn't use to have to enter passwords, nor did I ever have to turn off firewalls on the machines connected to the router. If now I have to start entering passwords just to copy a file from one machine to another, I'll simply use thumb drives and sneakernet the files over. Too much work, too complicated.
 
Old 03-29-2022, 04:35 PM   #20
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
In Windows 10 to see if SMBv1 is still enabled.

1. In Control Panel, select Programs.

2. Under Control Panel Home, select Turn Windows features on or off to open the Windows Features box.

3. In the Windows Features box, scroll down the list and look for a SMB 1.0 checkbox. If not checked or missing then it isn't being used.

In Windows 7 check the registry entry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
REG_DWORD: 1 = Enabled

I expect that it will be enabled for W7. WS-Discovery was available in W7.

I mostly use WinSCP to transfer files from Windows to linux.

There most be another rule that needs to be add since without UFW everything works for me. Its a new install so not sure if there is something different with an upgrade.
 
Old 03-29-2022, 04:57 PM   #21
Rodrigo7
Member
 
Registered: Aug 2011
Distribution: Kubuntu
Posts: 82

Original Poster
Rep: Reputation: Disabled
Thanks, I looked in the Win7 machine and no value is listed for SMB1 in the Registry there. Also looked under Features on the Win10 system and the box for SMB1 is there, but not checked.
 
Old 03-29-2022, 11:22 PM   #22
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,471
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Quote:
Originally Posted by Rodrigo7 View Post
How can I tell if SMBv1 is being used?

Separately... Up until just a couple of weeks ago, I didn't use to have to enter passwords, nor did I ever have to turn off firewalls on the machines connected to the router. If now I have to start entering passwords just to copy a file from one machine to another, I'll simply use thumb drives and sneakernet the files over. Too much work, too complicated.
File share with no password is quite insecure. It's part of the reason Microsoft killed SMBv1.

Konqueror and Dolphin can be set to remember your username and password, so you'll only have to enter them the first time you access a share.

Not complicated at all

Last edited by rkelsen; 03-29-2022 at 11:23 PM.
 
Old 03-30-2022, 12:47 AM   #23
Rodrigo7
Member
 
Registered: Aug 2011
Distribution: Kubuntu
Posts: 82

Original Poster
Rep: Reputation: Disabled
Yes, I understand that if this were a company or other network with a lot of participants, then passwords are a wise policy. But this is a home network: if a stranger has physical access to the computers on it, then I have much bigger problems to worry about than lack of password protection.

Still aiming for a solution that doesn't involve passwords.
 
Old 03-30-2022, 05:08 AM   #24
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,471
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Quote:
Originally Posted by Rodrigo7 View Post
Yes, I understand that if this were a company or other network with a lot of participants, then passwords are a wise policy. But this is a home network: if a stranger has physical access to the computers on it, then I have much bigger problems to worry about than lack of password protection.
As I said, you only have to enter it the first time you access a share... and you may not even have to do that if you have the same username & password on all of your machines.
Quote:
Originally Posted by Rodrigo7 View Post
Still aiming for a solution that doesn't involve passwords.
You won't find one, unless you go for PKI... which is yet more complicated.

You need to learn to embrace the passwords my friend.
 
Old 03-30-2022, 10:40 AM   #25
Rodrigo7
Member
 
Registered: Aug 2011
Distribution: Kubuntu
Posts: 82

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rkelsen View Post
As I said, you only have to enter it the first time you access a share... and you may not even have to do that if you have the same username & password on all of your machines.

[...]
Supposing that I do go that route, then these passwords -- are they the same as the password that one would set up to boot into each machine, or is it a different kind of password?

Just to make sure I understand the idea, let's say that I have a Windows laptop that's protected with a password so that when I travel with it, a thief couldn't see what's on it by simply turning it on. And let's say that this password is "Cleopatra." So, when the laptop is at home and connected to my LAN, is "Cleopatra" the password that I'd be using to access its shared folders from other computers on the LAN? Or would this access password be a different one, specific to network use?

Last edited by Rodrigo7; 03-30-2022 at 10:42 AM. Reason: clarity
 
Old 03-30-2022, 07:13 PM   #26
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Windows sharing password protection would be with an existing username / password on the laptop i.e. the same as when you login. Windows has additional protection based on private/public networks. If you specify your connecting to a public network you can have network discovery and file sharing automatically turn off.

For me everything works when UFW is turned off. The iptables rule posted earlier does seem to work i.e. allow me to connect to shares when UFW is running. You should also be able to manually access the share as described in post #16 regardless of being able to "see" the PC under network.

As posted I am not sure how your system is different from mine since it is a fresh install.
 
Old 03-31-2022, 12:41 AM   #27
Rodrigo7
Member
 
Registered: Aug 2011
Distribution: Kubuntu
Posts: 82

Original Poster
Rep: Reputation: Disabled
OK, so if I understand this, then implementing @rkelsen's suggestion would involve setting up a login password for every one of the computers on the LAN. Even if, as he suggests, I were to set Dolphin to enter the password on its own when I wanted to access a share, the tradeoff would be that I would be stuck with a password ("standard account" in Windows terms) on all the Windows machines.

I do value the ability to "just do it" when I want/need to make changes to the Windows systems, without the tollgate of passwords. (Not to worry, my Windows machines are all well protected with multiple layers of defense.)

One additional data bit: @rkelsen brought up Konqueror, an application that I know little about and have used even less. Out of curiosity, I launched it and tried to access the other computers on the LAN. And FWIW, with Konqueror I managed to access the shared folder on one particular Windows 7 laptop that, every time I try to access it via Dolphin, results in Dolphin crashing.

Maybe this will yield some useful clues as to what's going on.
 
Old 03-31-2022, 10:33 AM   #28
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Maybe, konqueror is a combination web browser and file manager. I'm not exactly sure why Dolphin crashes.

dolphin and konqueror use a virtual filesystem to connect to shares called kio. There could be version mismatch between dolphin and the kio samba slave.
 
Old 04-08-2022, 06:44 PM   #29
Rodrigo7
Member
 
Registered: Aug 2011
Distribution: Kubuntu
Posts: 82

Original Poster
Rep: Reputation: Disabled
I've made some progress on this issue and I'd like to give an update.

There is in my desk drawer a Live CD of Netrunner 16.16 Ozymandias. As an experiment, I slid it into a Windows laptop and booted the Live CD to see if it could find (browse) the other computers on the network.

Wouldn't you know it, Netrunner saw all of the computers on the LAN -- Linux and Windows both! I was even able to copy a file from the Netrunner disc to a public folder on a Windows PC without needing to enter any names or passwords.

So I copied the smb.conf file from Netrunner to a laptop running Kubuntu. This machine was previously unable to find (via Dolphin) anything other that the desktop Kubuntu machine. I compared its smb.conf file to that of Netrunner and made edits to the former to match the latter, hoping that this would do some magic.

Now when I click on "Network" in Doplphin, it can find one Windows PC (a Windows 10 system) in addition to the desktop Kubuntu machine. However, when I click on "Shared folders (SMB)" in Dolphin, I'm still getting the error message "Unable to find any workgroups in your local network."

Note that Netrunner 16.16 had NO problem finding the workgroup. (I can't speak for what newer versions of Netrunner might do.) So it looks like whatever the cause of my problem is, has to do with more than the smb.conf file, and it may be some change that occurred between 2016 and now.
 
Old 04-08-2022, 07:25 PM   #30
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,471
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Quote:
Originally Posted by Rodrigo7 View Post
So I copied the smb.conf file from Netrunner to a laptop running Kubuntu.
No no, you have it wrong.

smb.conf is the configuration file for a SAMBA server... it is not used by the client at all. Changing this file will have no impact upon your machine's ability to "see" other machines on your LAN.
Quote:
Originally Posted by Rodrigo7 View Post
Now when I click on "Network" in Doplphin, it can find one Windows PC (a Windows 10 system) in addition to the desktop Kubuntu machine. However, when I click on "Shared folders (SMB)" in Dolphin, I'm still getting the error message "Unable to find any workgroups in your local network."
...
Note that Netrunner 16.16 had NO problem finding the workgroup. (I can't speak for what newer versions of Netrunner might do.) So it looks like whatever the cause of my problem is, has to do with more than the smb.conf file, and it may be some change that occurred between 2016 and now.
But as I mentioned above, Dolphin doesn't use the smb.conf file at all.

If you want to "browse" network shares, you need to make sure you've got Avahi installed, with hostname resolution set up as follows:

https://wiki.archlinux.org/title/Ava...ame_resolution

I don't have (nor want) Avahi on my machine so I just use IP addresses: smb://192.168.x.x/share_name ...never fails. For ease of use (and because I can't remember everything), I use KDE's desktop shortcuts "Link to URL" with the smb:// format. Never fails either.

Edit: I downloaded the Netrunner iso and fired it up in a VM. Can confirm that it comes with Avahi pre-configured to browse networks.

Last edited by rkelsen; 04-08-2022 at 07:52 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux PCs no longer can view other PCs on LAN SheltonMac Linux - Wireless Networking 2 03-04-2014 06:40 AM
Block all websites for most PCs, and Whitelists some PCs??? Milkman00 Linux - Networking 2 09-18-2013 06:31 PM
linux can not see linux nor windows machine on same network eliassal Linux - Software 9 11-23-2010 02:09 PM
Reboot of Debian Lenny now Windows PCs cannot see Debian. sr_25 Debian 3 02-14-2009 02:03 PM
Samba - Linux box can see Windows, but WIndows can't see Linux Korff Linux - Networking 1 06-02-2003 10:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration