LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-02-2012, 10:25 AM   #1
oakridge
LQ Newbie
 
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12

Rep: Reputation: Disabled
Samba Shares


I have recently moved to Ubuntu - see my introduction in the new members section 'Hello from Yorkshire'.

I am hoping to use Ubuntu as a file server for our home office, as Mandriva was before, but I am having some trouble getting Linux and the Windows machines to talk to each other.

pyNeighbourhoud finds the four PCs turned on at present, including the Linux but only finds the shares on two of them, including the Linux. Windows finds all shares.

The 'Home' window finds Windows Network/Workgroup but then reports 'Unable to Mount Location, Failed to Retrieve Share List from Server'.

On Personal File Sharing Preference the 'Share Files Over the Network' option reports: 'This function cannot be enabled because the required packages are not installed on your system'. It does not tell me what the required packages are.

The router (BT HomeHub 3) lists all computers and correctly reports which are connected or not. The IP address given by the router is confirmed by ifconfig as 192.168.1.66 which is in the correct range.

BT Desktop Help, which of course will only run on Windows machines, finds everything connected except the Unbuntu.

Windows Explorer finds connected computers and shares, but not the Ubuntu.

So that is it then in a rather large nutshell. There are many features of Linux which I prefer over Windows so I really do not want give it up and anyway it is a challenge.

Malcolm
 
Old 01-02-2012, 11:46 AM   #2
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
Well the good news it definitely can be made to work.

What version of Ubuntu are you running? With what desktop environment?

Do you have the packages samba and smbclient installed?

It's unlikely to be a problem with your pure IP connectivity, but just in case, make sure that the server can ping all the other machines.
The solution will most likely be somewhere in your /etc/samba/smb.conf file.

What workgroup do all the windows machines belong to?
 
1 members found this post helpful.
Old 01-02-2012, 01:14 PM   #3
oakridge
LQ Newbie
 
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thank you SecretCode for your reply.

I have this nasty feeling that the problem is going to be something perfectly obvious and simple and I am going to feel extremely silly.

It is Ubuntu 11.10 with Gnome.

Samba and SMBclient are installed.

The Linux can ping all other machines by IP address, but only the Windows machines can resolve the name.

The workgroup is workgroup.

Malcolm
 
Old 01-02-2012, 11:46 PM   #4
rockstar05
Member
 
Registered: Dec 2011
Posts: 41

Rep: Reputation: Disabled
Hello oakridge,

if your linux system could not resolve the name give that entry in /etc/hosts file


Example:

192.168.1.66 station66.example.com station66

Thanks
 
1 members found this post helpful.
Old 01-03-2012, 05:49 AM   #5
oakridge
LQ Newbie
 
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thank you Rockstar05 for your reply.

I had forgotten about the hosts file. Oakridge-ubuntu had been assigned 127.0.0.1 along with localhost so that was not helping. I corrected that and entered the other machines on the network and now all can be pinged by name.

We are getting there.

Malcolm
 
Old 01-03-2012, 08:03 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,889

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
In a nutshell, windows PCs automatically register their netbios names vs IP addresses but linux PCs do not. This is why you can not ping by netbios name from a linux PC. There are several options like using the host file, DNS or by using WINS.

http://www.zulius.com/how-to/resolve...es-from-linux/
http://www.samba.org/samba/docs/man/...-networks.html
http://wiki.samba.org/index.php/Moun..._a_unix_client

FYI Nautilus has a built in smb client so you can browse windows shares using a file browser.
 
1 members found this post helpful.
Old 01-03-2012, 08:36 AM   #7
oakridge
LQ Newbie
 
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thank you for your post michaelk.

As I say in my first post pyNeighbourhood can view all four MS machines, but only 'sees' the sub-directories on two. This is not a problem between the MS machines.

The 'Home' icon, which I presume is Nautilus, lists the Windows Network but will not drill down to the actual PCs.

None of the MS machines can connect to the Ubuntu.

Malcolm
 
Old 01-03-2012, 09:41 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,889

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
If the Ubuntu PC is running a firewall make sure it allows smb traffic.
Is samba server actually running? The samba processes are smbd and nmbd. You will also need to add a samba password for your users (smbpasswd)
Some samba console commands to see shares are findsmb, smbtree and smbclient.

Smbclient -L netbios_name (just press the enter key when asked for a password)
 
2 members found this post helpful.
Old 01-03-2012, 01:41 PM   #9
oakridge
LQ Newbie
 
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thank you again for your reply michaelk.

Ubuntu does not load a firewall as default and so far I have not installed one.

Samba is running.

findsmb just finds the local machine - ubuntu.
smbtree finds all machines actually running and their shared folders including those which pyNeighbourhood does not list. However, for the ubuntu it reports: cli_start_connection: failed to connect to <20> (0.0.0.0): error NT_STATUS_UNSUCCESSFUL

I hope this helps.

Malcolm
 
Old 01-04-2012, 10:19 AM   #10
oakridge
LQ Newbie
 
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12

Original Poster
Rep: Reputation: Disabled
Bingo, yippeee, it works. Thank you all for your help.

Malcolm
 
Old 01-04-2012, 02:48 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,889

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Well done.
Please mark this thread as solved. BTW what was the solution so others may benefit.
 
1 members found this post helpful.
Old 01-04-2012, 03:24 PM   #12
oakridge
LQ Newbie
 
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12

Original Poster
Rep: Reputation: Disabled
The solution was that I had started editing smb.conf directly as a text file which went fine but then I tried the Ubuntu Samba configuration program which did not work too well. Unfortunately between the twe I managed to delete all text from smb.conf which did not help sharing at all. Fortunately there is a copy so once that was properly edited everything was fine.

I am sorry but my eyesight is extremely poor and I cannot find the 'solved' button. If you could point me at it I will gladly comply.

Thanks to you all again.

Malcolm

P.S. Ah, found the 'solved' link.

Last edited by oakridge; 01-04-2012 at 03:25 PM.
 
  


Reply

Tags
microsoft, network connectivity, samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
samba shares permissions as flexible as 2003server shares? fdelval Linux - Newbie 5 11-23-2010 08:29 AM
RHEL 5.3 Samba DR Restore - Permissions Screwy on Samba shares mudman69 Red Hat 3 05-12-2009 10:56 AM
can not access samba shares from a VIRTUAL samba server using smb4k nass Fedora 0 12-13-2008 04:39 AM
Samba 3.0.6 - How to mount Samba Shares from Windows 2003? kp1 Linux - Software 2 09-10-2004 06:03 PM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM


All times are GMT -5. The time now is 04:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration