samba network connection lost

Questions about Networking that deals with wireless cards, ethernet, modems, samba and anything else related to these, including software help. Tutorials for any of these can be posted too.

Remember to provide relevant info in your posts, such as the following information:

Version of Mepis being used
Card Manufacturer (i.e. Linksys)
Card Model (i.e. WMP54G)
Type: (PCI or PCMCIA)
Current Kernel in use on their system (i.e. 2.6.10)
Udev or Hotplug
Exact steps taken to get the card working if it is not immediately recognized by MEPIS.
Message
Author
User avatar
pcallahan80
Forum Guide
Forum Guide
Posts: 1555
Age: 67
Joined: Sun Mar 18, 2007 6:34 pm

Re: samba network connection lost

#11 Postby pcallahan80 » Fri Jan 13, 2012 3:49 pm

.
According to your smbclient readout:

192.168.1.3 is in a workgroup called MEPIS1 (the smbclient terminology is "Domain" which seems to be interchangable with "workgroup")

192.168.1.5 is in a workgroup called HOWARDXP

That might have something to do with them not seeing each other. MEPIS1 is the default "workgroup" name when you install MEPIS.

Also, the Workgroup Master is listed by 192.168.1.3 as being WOOTONRISE...is that in Workgroup MEPIS1?

But the Workgroup Master listed by 192.168.1.5 is blank which is strange...but it maybe not seeing the Workgroup Master because it is not in Workgroup MEPIS1.

Daily Driver: MSI 890FXA-GD70 | AMD Phenom II X6 1055T | GeForce GTX 750 Ti | 12G RAM
Test: Dell Inspiron 20 model 3043 | Quad core Intel Pentium N3530| Intel Atom Z36xxx/Z37xxx Graphics | 4G RAM

Toastrack
Forum Regular
Forum Regular
Posts: 178
Joined: Thu Jan 13, 2011 1:09 pm

Re: samba network connection lost

#12 Postby Toastrack » Sat Jan 14, 2012 6:23 am

Last question first - yes the XP browses the internet fine, no problems there.
Pinging the ip of the mepis machine shows the correct expected returns.

The net view command told me the syntax was wrong. Following up the info provided and using a number of commands (still on the Xp machine) gave various responses indicating that it could see everything it should *except* for the mepis machine. One output shows the xp machine as a workstation, which surprised me.
I'm now wondering if all this might have started since i installed vmware on the xp machine, although as far as I am aware that is not currently running.

Just shut down some vm stuff i found in background, and now xp net view sees mepis samba, but I still cannot see into mepis files. From the mepis box I can now see the workgroup name come up, but from there it says it cannot resolve a unique server name.

So it looks like this is something to do with the xp's vmware, maybe somethingvelse in the background?

User avatar
GoManutd
Forum Guide
Forum Guide
Posts: 2952
Joined: Mon Jun 30, 2008 8:06 pm

Re: samba network connection lost

#13 Postby GoManutd » Sat Jan 14, 2012 9:20 am

ok. then vmware is doing some weirdness to your network config.

double check that all the workgroup names are the same for all the machines... if not already done, make the changes i suggested about making the samba server THE domain browse master.

also, add the following to the samba config

Code: Select all

[global]
   wins support = yes
   name resolve order = wins hosts lmhosts bcast
   dns proxy = yes


restart samba. if you're on 8.5, then i believe you have to restart smbd and nmbd each. so, e.g. /etc/init.d/smbd stop will stop smbd, then start it

this last change, in addition to the first group of config changes will make samba THE domain browser AND it will make samba a WINS server enabling netbios name resolution.

caveat emptor... samba NEEDS to be running first before the XP machines to ensure that it is the domain browse master. if not, the higher priority assigned to the samba system in theory should get XP to relinguish its status as browse master, but i've seen this create problems - windows is greedy when it comes to becoming and staying the netbios domain browse master.

Toastrack
Forum Regular
Forum Regular
Posts: 178
Joined: Thu Jan 13, 2011 1:09 pm

Re: samba network connection lost

#14 Postby Toastrack » Sat Jan 14, 2012 11:57 am

XP now back seeing the network IP. DCHP address had become corrupted somehow.

Checked the workgroup name is the same everywhere. It is.

Added the lines to smb.conf. The first and third lines were there, but set to no instead of yes. Now corrected. Copy of smb.conf appended at the end.

It did not recognise the synbtax of the stop and start commands you offered, o I shut down mepis and rebooted. Thn I shut down and rebooted the XP system. Result - back to the original problem still unchanged.

In dolphin, network>samba finds the workgroup name woottonrise ok now. Clicking there produces the message "unable to resolve to a unique server ........"

Here is smb.conf, in case it helps:-

[global]

# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d
workgroup = woottonrise
server string = %h server (Samba %v)
hosts allow = 192.168.0. 192.168.1. 192.168.2. 192.168.79. 127. 10.0.0. 10.1.1.
socket options = IPTOS_LOWDELAY TCP_NODELAY
log level = 1
dead time = 15
wins support = yes
hide unreadable = yes
passdb backend = tdbsam
dns proxy = yes
host msdfs = no
max log size = 1000
map to guest = Bad Password
restrict anonymous = no
max protocol = NT
ldap ssl = No
server signing = Auto
oplocks = No
level2 oplocks = No
domain master = yes
local master = yes
os level = 65
name resolve order = wins hosts lmhosts bcast
preferred master = yes
;*******************section horby30*****************
[Shared]
path = /home/horby30/Shared
guest ok = yes
read only = no

[Music]
path = /home/horby30/Music
guest ok = yes
read only = no
;*******************section homes*****************
[homes]
comment = Home Directories
browseable = no
read only = no
create mask = 0775
directory mask = 0775
;*******************section printers*****************
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes
guest ok = yes
create mask = 0700

[HORBY30]
path = /home/horby30
guest ok = yes

[print$]
path = /var/lib/samba/printers
browsable = yes
read only = yes
guest ok = no

I guess there's stuff n there that's not needed too!

Toastrack
Forum Regular
Forum Regular
Posts: 178
Joined: Thu Jan 13, 2011 1:09 pm

Re: samba network connection lost

#15 Postby Toastrack » Sat Jan 14, 2012 12:03 pm

PS Printing:

mepis now seems to print to the XP printer OK.
XP does not seem to print top the mepis printer, although the screenshots all operate and no error message appears.

User avatar
GoManutd
Forum Guide
Forum Guide
Posts: 2952
Joined: Mon Jun 30, 2008 8:06 pm

Re: samba network connection lost

#16 Postby GoManutd » Sat Jan 14, 2012 12:23 pm

XP not printing is likely now a permission issue OR a firewall problem.

samba user accounts are different from your linux logins - unless, of course you've set samba to sync your linux accounts.

it could be that your printer isn't shared or not set for guest privileges. i don't have m8.5, so i don't know if printer config stuff is contained in the system settings tool... however, you can access the mepis printer via http://<mepis_ip_addr>:631

cups has been updated on m11, so i don't know if it matches m8.5. on m11's cups, under Administration there is a "Share Printers Connected To This System" option - enable it. Then administer the printer you want shared, and make sure that there isn't a user account restriction

Toastrack
Forum Regular
Forum Regular
Posts: 178
Joined: Thu Jan 13, 2011 1:09 pm

Re: samba network connection lost

#17 Postby Toastrack » Sun Jan 15, 2012 12:04 pm

Further looking suggests the mepis server is not running. The router sees the ip address ok, but attempts to read it fail.

Also, commands in konsole such as /etc/init.d/smbd stop produce the message "no such file or directory". Network Assistant>interfaces shows "not started" despite "start at boot" being checked. "Start on Apply" does not start either.

User avatar
GoManutd
Forum Guide
Forum Guide
Posts: 2952
Joined: Mon Jun 30, 2008 8:06 pm

Re: samba network connection lost

#18 Postby GoManutd » Sun Jan 15, 2012 1:36 pm

samba is installed by default, but startup synaptic and search for samba to see if it's installed.

ls -d /etc/init.d/s* will show you all commands in that directory that start with s... look for smbd, smb or samba to determine which is the correct...

Toastrack
Forum Regular
Forum Regular
Posts: 178
Joined: Thu Jan 13, 2011 1:09 pm

Re: samba network connection lost

#19 Postby Toastrack » Mon Jan 16, 2012 5:22 am

synaptic showed samba and other stuff had upgrades available, so I let it all upgrade. no apparent problem. But behaviour is exactly the same.

Then used your command suggested, and was surprised to get:-

ls -d /etc.init.d/s*
ls: cannot access /etc.init.d/s*: No such file or directory
[horby30@mepis1 ~]$

Any ideas?

User avatar
michelmassoud
Forum Regular
Forum Regular
Posts: 805
Age: 57
Joined: Tue Jul 27, 2010 7:02 am

Re: samba network connection lost

#20 Postby michelmassoud » Mon Jan 16, 2012 5:47 am

There could be an issue with the Mepis and Windows share. You should look at your shared folders to see what kind of permissions you have.

Michel


Return to “Networking”

Who is online

Users browsing this forum: No registered users and 2 guests