Help connecting to Win7 share

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Level 1
Level 1
Posts: 18
Joined: Sun Oct 27, 2013 12:39 pm

Help connecting to Win7 share

Post by suicideking »

I did a clean install of Mint 19.1 cinnamon on my laptop and can't access a share on a windows 7 PC. The share is accessible from other windows PC's.

I've read a few walkthroughs on getting samba working, but still stuck. I found a command to install samba:

sudo apt-get install samba

Now if I enter:

sudo service smbd status

It gives me what looks like an 18 page list that I have to hit ctrl + c to get out of. Not sure if this is helpful, but it starts with:

smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: ena
Active: active (running) since Sun 2019-05-19 09:14:08 PDT; 24min ago
Docs: man:smbd(8)
Main PID: 1587 (smbd)
Status: "smbd: ready to serve connections..."
Tasks: 4 (limit: 4915)
CGroup: /system.slice/smbd.service
├─1587 /usr/sbin/smbd --foreground --no-process-group
├─1589 /usr/sbin/smbd --foreground --no-process-group
├─1590 /usr/sbin/smbd --foreground --no-process-group
└─1592 /usr/sbin/smbd --foreground --no-process-group

May 19 09:14:08 HPE systemd[1]: Starting Samba SMB Daemon...
May 19 09:14:08 HPE systemd[1]: Started Samba SMB Daemon.
May 19 09:19:57 HPE smbd[2700]: pam_unix(samba:session): session closed for user

If I go to the file explorer and type: smb://(host) or by using the ip address, it fails right away.

How do I set this up?
Level 4
Level 4
Posts: 488
Joined: Fri Sep 05, 2014 1:39 am

Re: Help connecting to Win7 share

Post by oldgranola »

Its not an entirely simple problem. You need to learn a little about microsofts workgroup vs homegroup ... -to-finish
One can then use samba to join a homegroup or workgroup. But its still not great.

I like to set IP's static via my router on machines I want to access and within each computer, set shares and access those via IP's. Nemo has a nice gui for accessing windows servers. At work, IT sets those IP's then follow same. I found this post by tovian very helpful. I prefer the last option
Re: Linux Mint 18 access to Windows shares

Unread post by tovian » Sun Mar 25, 2018 10:51 am
Here's some things you can try to see if you can get more information that may lead you to either a fix or a better understanding.

1. Unplug the internet cable from your public-facing modem/router (to isolate yourself from the internet while testing).
-- turn your Windows firewall(s) OFF ( I would reboot all machines at this point just to make sure ALL networking components are reinitialized)
-- try your access from the Mint box again
-- make absolutely sure you turn your firewall(s) back ON before you re-connect the internet access

2. Change the workgroup value in your smb.conf to your other workgroup-id
-- again, I would reboot here to make sure this test is not corrupted by some previous (cached) setting/value
-- test your Windows access(es) again and compare with what you observed the original way
*- Windows doesn't care about most capitalizations so it shouldn't matter if you use upper/lower case in your smb.conf - but, just to eliminate any possible glitch, I would use exactly the same spelliing/format in ALL settings.

3. WORKAROUND - I abandoned attempts to browse Windows workgroups from Linux long ago. Instead I set static IP's for all my machines (on both my network segments). Then I can set non-changing references to all hosts (something like "places" or "favorites" depending on the file-manager I'm using). It's kind of a pain to set up initially, but it's so much smoother and more reliable in the long term. And, all your hosts stay "in the same place" no matter what system you are trying to reference them from. This is extremely useful for me when I connect a client computer to my lab network and need to get to other machines (repo's) to retrieve software.
But to mount a share on boot you may need to use the CIF protocol. It was split from samba and must be installed separately and on kernels which support cif (all ours should). Here's a tutorial that isn't too hard to follow. Fist do the above and set IP's for all devices then ... -tutorial/
comadore, pcDOS, hpux, solaris, vms-vax ....blah blah blah..
Yet I'm still a fn nooob
Level 1
Level 1
Posts: 18
Joined: Sun Oct 27, 2013 12:39 pm

Re: Help connecting to Win7 share

Post by suicideking »

Does look a bit complicated.

I have a VM with mint 18.3. I was able to install the samba components and a utility smb4k and get it working there. Couldn't get the same utility working on the laptop with 19.1.

Probably easier to setup filezilla on the win7 PC and connect using FTP.
Post Reply

Return to “Newbie Questions”