Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Samba (SMB) file sharing problems with Ubuntu GNU/Linux

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Networking
Register FAQ Community Calendar

Samba (SMB) file sharing problems with Ubuntu GNU/Linux
Reply
 
Thread Tools
Old 04-02-2007, 01:58   #1
Tezcatlipoca
Inactive
 
Tezcatlipoca's Avatar
 
Join Date: Jun 2003
Location: Cambridge
Posts: 16,760
Tezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny stars
Tezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny stars
Samba (SMB) file sharing problems with Ubuntu GNU/Linux

I've been trying to share a folder in Ubuntu 6.10 ("Edgy Eft") using Samba (SMB) file sharing, but not had much luck.


It shares perfectly under XP Home (same PC, dual boot).


The PC has the same Workgroup name & computer name under Ubuntu as it does under XP.


I've followed this basic guide:

http://ubuntuguide.org/wiki/Ubuntu_Edgy#Samba_Server

...plus Googled around, although only seem to find the same basic info.

I created a new user in Ubuntu on the server PC, solely for the client to log into it as, & added the user to the samba password list.


The client simply will not see the share when the sharing PC is running Ubuntu, yet it's perfect when I boot into XP.

If I disable "Firestarter" iptables firewall in Ubuntu, the client is then able to see the workgroup & the server, but still can't actually see the shared folder. [which is doubly strange, as I added rules to Firestarter to allow the client's IP address & allow samba sharing].



Any ideas?
Tezcatlipoca is offline   Reply With Quote
Advertisement
Old 04-02-2007, 02:07   #2
Graham M
-
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: Samba (SMB) file sharing problems with Ubuntu GNU/Linux

Do you habve a firewall enabled in Windows as that could cause the problems you've described

(sorry iff that doesnt amek sense as iv e just had anight out)
Graham M is offline   Reply With Quote
Old 04-02-2007, 02:16   #3
Tezcatlipoca
Inactive
 
Tezcatlipoca's Avatar
 
Join Date: Jun 2003
Location: Cambridge
Posts: 16,760
Tezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny stars
Tezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny stars
Re: Samba (SMB) file sharing problems with Ubuntu GNU/Linux

I've got ZoneAlarm running when in Windows, but it has the client's IP added to the Trusted Zone, plus it isn't Windows that's the problem - the client won't access the server when the server is running Ubuntu.
Tezcatlipoca is offline   Reply With Quote
Old 04-02-2007, 23:31   #4
Tezcatlipoca
Inactive
 
Tezcatlipoca's Avatar
 
Join Date: Jun 2003
Location: Cambridge
Posts: 16,760
Tezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny stars
Tezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny stars
Re: Samba (SMB) file sharing problems with Ubuntu GNU/Linux

Anyone?
Tezcatlipoca is offline   Reply With Quote
Old 05-02-2007, 01:45   #5
brundles
Inactive
 
Join Date: Jan 2006
Location: Berkshire
Posts: 1,266
brundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of society
Re: Samba (SMB) file sharing problems with Ubuntu GNU/Linux

If you try and access the shared directory from a Windows machine using \\shared.machines.ip.addres\share_name what response do you get?

Are the ports open and listening on the Ubuntu machine (ps -ef | grep smb and also netstat -a)?

One other thing I've seen before with Windows shared folders and non-Windows Samba setups is the ports used. Most of the Unix Samba implementations I've seen use the 138/139 NetBIOS ports that Windows used to use. MS have changed to the SMB ports on 445 (I think) which can cause problems. Have a rummage through the settings on the Windows machine you're trying to access the share from and make sure that you have the NetBIOS stuff enabled (check under the WINS tab of advaced TCP/IP settings for your network adapter).
brundles is offline   Reply With Quote
Old 06-02-2007, 00:45   #6
Tezcatlipoca
Inactive
 
Tezcatlipoca's Avatar
 
Join Date: Jun 2003
Location: Cambridge
Posts: 16,760
Tezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny stars
Tezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny stars
Re: Samba (SMB) file sharing problems with Ubuntu GNU/Linux

Cheers


I'll have another try tomorrow night.


Oh, & the client is actually an Xbox, running Xbox Media Centre...I'm trying to stream my videos over the share...works fine when the server PC is running XP.

If I can't get the sharing to work, I'll prob. try & find a free UPnP Media Server to run on Ubuntu instead.
Tezcatlipoca is offline   Reply With Quote
Old 06-02-2007, 11:09   #7
brundles
Inactive
 
Join Date: Jan 2006
Location: Berkshire
Posts: 1,266
brundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of societybrundles is a pillar of society
Re: Samba (SMB) file sharing problems with Ubuntu GNU/Linux

Must admit I've had some problems in the past when using XBMC with Linux -if I remember rightly it turned out to be something to do with the config file on XBMC. Let me know if you still don't have any luck (if it's XBMC as the client the setting the NetBIOS stuff isn't really an option and both should already be on the 138/139 ports) and I'll see if I have a copy of the old config around somewhere.
brundles is offline   Reply With Quote
Old 06-02-2007, 23:49   #8
The Jackal
Inactive
 
Join Date: Oct 2006
Posts: 1,604
The Jackal has a bronzed appealThe Jackal has a bronzed appeal
The Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appeal
Re: Samba (SMB) file sharing problems with Ubuntu GNU/Linux

Quote:
Originally Posted by Matt D View Post
Anyone?
Gawwaaaannn then - guest appearance from me.....

Install gsambad via synaptic and set up your shares giving extra attention to the following configs :

Announce this server to : (should be broadcast IP ie 192.168.0.255 etc etc)
Retrieve announcements from : same subnet broadcast address
Allowed hosts : bung 192.168.0. in there
Handle connections from 192.168.0.0/24
The Jackal is offline   Reply With Quote
Old 06-02-2007, 23:52   #9
Tezcatlipoca
Inactive
 
Tezcatlipoca's Avatar
 
Join Date: Jun 2003
Location: Cambridge
Posts: 16,760
Tezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny stars
Tezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny stars
Re: Samba (SMB) file sharing problems with Ubuntu GNU/Linux

Thanks again


Haven't had time to try it out again tonight, but will have a look through the XBMC config as well as the Ubuntu settings when I get a chance.

---------- Post added at 23:52 ---------- Previous post was at 23:50 ----------

Quote:
Originally Posted by CrC-3rr0r View Post
Gawwaaaannn then - guest appearance from me.....

Install gsambad via synaptic and set up your shares giving extra attention to the following configs :

Announce this server to : (should be broadcast IP ie 192.168.0.255 etc etc)
Retrieve announcements from : same subnet broadcast address
Allowed hosts : bung 192.168.0. in there
Handle connections from 192.168.0.0/24



Cheers
Tezcatlipoca is offline   Reply With Quote
Old 06-02-2007, 23:54   #10
The Jackal
Inactive
 
Join Date: Oct 2006
Posts: 1,604
The Jackal has a bronzed appealThe Jackal has a bronzed appeal
The Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appeal
Re: Samba (SMB) file sharing problems with Ubuntu GNU/Linux

The gsambad gui made childs play out of hacking smbd.conf and nmb by hand.... I was lazy one night gave it a whirl and it worked first time.

Failing that you can try the old SWAT interface but I found gsambad a lot more user friendly
The Jackal is offline   Reply With Quote
Old 07-02-2007, 00:05   #11
Tezcatlipoca
Inactive
 
Tezcatlipoca's Avatar
 
Join Date: Jun 2003
Location: Cambridge
Posts: 16,760
Tezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny stars
Tezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny starsTezcatlipoca has a pair of shiny stars
Re: Samba (SMB) file sharing problems with Ubuntu GNU/Linux

Thanks. The guides I found didn't give a lot of detail about smb.conf etc.


Hopefully between your suggestions & brundles' I'll get this working

[then it'll be one less thing I need XP for lol]
Tezcatlipoca is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 13:31.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum