LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-19-2012, 01:53 PM   #1
jstelly
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
Unhappy Fedora 17 Samba Problem


I have a small home network consisting of three Windows 7 computers and a Linux computer with Fedora 17 that I intend to user as a file server for the Windows computers. (In case you're wondering about this set up; I am transitioning to Linux, but the rest of my family is not interested in changing.)

The problem I am having is this: I can manually start the Samba server with the smbd start command and the Windows computers will happily open the Samba shares I have set up on the Linux box. If, however, I set up the Linux box to start the Samba server when I boot up the computer, the Windows computers are not happy. They respond with "Windows cannot access \\pc1\share1..." If I kill the Samba process and restart it manually, the Windows computers are happy again.

I have tried setting up the Samba server to run at boot time with one of the two following commands (the result is the same either way):

chkconfig --level 35 smb on

systemctl enable smb.service

I have tried turning off the firewall on both computers, but to no avail.

Any help would be greatly appreciated. Thanks.
 
Old 11-20-2012, 07:05 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Check the nmbd and smbd logs for errors. If you can manually start samba then it or something else isn't configured correctly at boot time.
 
Old 11-20-2012, 12:21 PM   #3
jstelly
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile SOLVED: SELinux Blocking Samba Service

After much weeping and gnashing of teeth, I finally found out that SELinux was blocking the Samba service. It appears that launching the service with smbd start somehow bypasses SELinux and lets the remote computers through, but starting the service with systemctl will cause SELinux to block access to the shares. In any case the setsebool command was what I needed to use to open the shares.
 
Old 11-20-2012, 01:16 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
That was going to be my next suggestion

You can really mark the thread as solved under the thread tools menu.
 
  


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
Fedora 10 and SAMBA problem! please help. oknorton Linux - Software 2 02-09-2009 08:56 AM
Fedora 10 and samba domain controller problem? Tom Fortner Linux - Server 3 01-28-2009 01:20 PM
Fedora 4 Samba write problem jraff Linux - Networking 14 11-01-2006 07:12 PM
Samba problem in Fedora Core 5 areftaidi Fedora 4 04-02-2006 10:15 AM
Strange samba problem on Fedora Core 3 david_annable Linux - Networking 5 02-08-2005 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:53 PM.

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