LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 02: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, 08:05 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,152

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
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, 01: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, 02:16 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,152

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

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


Reply


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


All times are GMT -5. The time now is 01:38 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration