Samba sharing between 2 fedora boxes = can't do it!
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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.
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..
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.