LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-22-2010, 02:04 PM   #1
spoovy
Member
 
Registered: Feb 2010
Location: London, UK
Distribution: Scientific, Ubuntu, Fedora
Posts: 373

Rep: Reputation: 43
Samba sharing between 2 fedora boxes = can't do it!


I want to share a directory between two fedora 12 KDE boxes, peony and dandelion. I have set it up as simple as I can ('share' level security), but it just doesn't want to play. I've followed two guides and many links and suggestions and no go. Any help here very much appreciated.

Any idea what might cause this error? I can ping the server ok, using hostname or the IP as shown here.


[spoovy@dandelion etc]$ sudo mount -t cifs //192.168.2.3/store /mnt
[sudo] password for spoovy:
Password:
mount error(113): No route to host
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)



Thanks in advance

Spoov
 
Old 03-22-2010, 02:50 PM   #2
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
It could be one of two things - your firewalls or SELinux.

To disable these (assuming your machines are not exposed on the internet) so that you can see if they are the problem or not, use these commands when logged in as root:-
Code:
service iptables stop
setenforce 0
The first command stops the iptables firewall. Use the same command with "start" to restart it. The second puts SELinux into "Permissive" mode where it reports errors, but allows them. Use the same command with 1 instead of 0 to set it back to "Enforcing".

If the mount works when either or both of these are disabled, then you need to check your log files (e.g. /var/log/audit/audit.log for SELinux and /var/log/messages for iptables/firewall) to see what is being disallowed and then modify your system to allow the connections.

Last edited by blacky_5251; 03-22-2010 at 02:51 PM.
 
Old 03-22-2010, 04:16 PM   #3
spoovy
Member
 
Registered: Feb 2010
Location: London, UK
Distribution: Scientific, Ubuntu, Fedora
Posts: 373

Original Poster
Rep: Reputation: 43
Thanks, unfortunately it still doesn't work, but with a different error reason this time:

[spoovy@dandelion ~]$ sudo mount -t cifs //192.168.2.3/store /mnt
Password:
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


Does this illuminate at all? cos i'm still in the dark here..
 
Old 03-22-2010, 07:37 PM   #4
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
Is Samba running on both machines? Can you still ping between them?
 
Old 03-22-2010, 10:27 PM   #5
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Not to start a flame or anything but my first query was why are you using Samba to talk between two Linux machines?
 
Old 03-23-2010, 05:38 AM   #6
spoovy
Member
 
Registered: Feb 2010
Location: London, UK
Distribution: Scientific, Ubuntu, Fedora
Posts: 373

Original Poster
Rep: Reputation: 43
blacky_5251 - yes I keep checking to make sure with $ service smb restart; it is deffo running on both machines. Yes ping-ing still works both ways too.

grail - I used to use NFS but I am trying to migrate to samba as it is more versatile and secure, and I would like to know how to use it.

Last edited by spoovy; 03-23-2010 at 07:31 AM.
 
Old 03-23-2010, 07:00 PM   #7
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
Try testing the connections with "smbclient". Here's an example:-
Code:
[irb@crms ~]$ smbclient -L eddie -U irb
Enter irb's password:
Domain=[ADL] OS=[Unix] Server=[Samba 3.0.33-3.15.el5_4.1]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (Eddie Samba Server Version 3.0.33-3.15.el5_4.1)
        crmshtmldoc     Disk      CRMS HTML Documentation
        opt             Disk      Zaphod opt directory
        root            Disk      Zaphod Root Directory
        crms            Disk      CRMS
        HP_LaserJet_P2055dn Printer   Duplexing Network HP LaserJet P2055dn Printer
        irb             Disk      Home Directories
Domain=[ADL] OS=[Unix] Server=[Samba 3.0.33-3.15.el5_4.1]

        Server               Comment
        ---------            -------
        EDDIE                Eddie Samba Server Version 3.0.33-3.15.el5_4.1
        MARVIN

        Workgroup            Master
        ---------            -------
        ADL                  EDDIE
[irb@crms ~]$
You don't specify a user on your mount command either, so perhaps it is attempting to connect as root, but fails because root is not a valid Samba user on the destination server. Try adding "-o user=your_remote_userid" to the end of the command and see if that helps.

Also, check out your log files:-
Code:
/var/log/samba/smbd.log
/var/log/samba/nmbd.log
/var/log/secure
/var/log/messages

Last edited by blacky_5251; 03-23-2010 at 08:28 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
3 Ubuntu boxes with Samba - One finds all XP shares - Two UltraSparc64 boxes do not mwx Linux - Server 1 01-28-2009 06:03 AM
SAMBA on Slackware 12.1 sharing a CUPS printer to XP boxes: Help please? skelter42 Linux - Server 1 05-15-2008 04:59 PM
samba sharing in fedora chenboly Linux - Networking 1 04-10-2008 12:50 AM
Samba sharing from one Fedora 4 to another jeopardyracing Linux - Software 8 10-19-2006 02:09 PM
Fedora Core and Slack boxes sharing files!! linuxhippy Slackware 1 05-02-2005 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:56 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