Fedora Linux Support Community & Resources Center
  #1  
Old 8th April 2012, 03:54 PM
NickC Offline
Registered User
 
Join Date: Jan 2009
Posts: 72
windows_98_nt_2000firefox
Samba Server not visible

Hi,
I am trying to setup Fedora 16 with both Samba Client and Samba Server.

Samba Client seems to browse and connect to Windows Shares on other machines ok, except that administrative shares (x$) are visible but cannot be connected to, however this might be normal.

Problem is with Samba Server; none of the shares I create with Samba Server Configuration Tool are visible to other machines on the network. In fact the whole Fedora server is not visible from the network, it can be pinged but is not browseable from the windows network.

One thing I notice is that in Windows the Workgroup name is in uppercase but in Fedora, even though I input it as uppercase in Samba Server Configuration -> Server Settings seems to convert it to lowercase, is there a way around this.

On the Fedora machine -> Windows network -> Workgroup, the Samba Server is not visible. Any idea what I have done wrong?

Thanks,
Nick
Reply With Quote
  #2  
Old 8th April 2012, 04:08 PM
jswmcw Offline
Registered User
 
Join Date: Jan 2011
Location: Ohio
Posts: 45
Is the nmb service running?
Try: systemctl enable nmb.service
And: systemctl start nmb.service

Sent from my Galaxy Nexus using Tapatalk
__________________
:C
"Anybody who tells me I can't use a program because it's not open source, go suck on rms. I'm not interested. 99% of that I run tends to be open source, but that's _my_ choice, dammit." -- Linus Torvalds, 2004.
Reply With Quote
  #3  
Old 8th April 2012, 05:45 PM
NickC Offline
Registered User
 
Join Date: Jan 2009
Posts: 72
windows_98_nt_2000firefox
Re: Samba Server not visible

Quote:
systemctl enable nmb.service
returns:
nmb.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig nmb on
Warning: unit files do not carry install information. No operation executed

Quote:
systemctl start nmb.service
seems to work and does not return anything.

Unfortunately still no network.
Reply With Quote
  #4  
Old 8th April 2012, 06:02 PM
bbfuller Offline
Registered User
 
Join Date: Jun 2005
Location: UK
Posts: 4,359
linuxopera
Re: Samba Server not visible

Hello NickC

Code:
service nmb status
and

Code:
service smb status
should show among other things "active" if they are enabled.

Have you allowed samba sharing through the Fedora firewall?

Have you made the changes to SELinux to allow access to samba shares?
Reply With Quote
  #5  
Old 8th April 2012, 09:08 PM
NickC Offline
Registered User
 
Join Date: Jan 2009
Posts: 72
windows_98_nt_2000firefox
Re: Samba Server not visible

Samba & Samba client opened on firewall. Nothing done to SELinux, didn't know I had to also don't know how to. Will search for info on SELinux.

Thanks

---------- Post added at 09:08 PM ---------- Previous post was at 08:55 PM ----------

Is there a way to just turn SELinux off for the moment to test if that makes any difference?
Reply With Quote
  #6  
Old 8th April 2012, 10:09 PM
bbfuller Offline
Registered User
 
Join Date: Jun 2005
Location: UK
Posts: 4,359
linuxopera
Re: Samba Server not visible

Hello NickC

SELinux has lots of options.

There is a gui to configure the most usual of them including turning it off (not recommended)

Try:

Code:
yum install policycoreutils-gui
Before you turn it off though, look in the Boolean tab. You'll find lots of options for selectively allowing samba.

It'll turn up where all the other administrative tools appear.
Reply With Quote
  #7  
Old 9th April 2012, 03:09 PM
NickC Offline
Registered User
 
Join Date: Jan 2009
Posts: 72
windows_98_nt_2000firefox
Re: Samba Server not visible

Is there not just some way to either turn off or uninstall SELinux to test whether this is the problem or not first? I have installed policycoreutils-gui, no boolean tab present though. This says Select the policy type for the application or user role you want to confine: Applications / Login Users / Root Users. What do I do from here, how do I allow Samba through SELinux?
Reply With Quote
  #8  
Old 9th April 2012, 03:23 PM
bbfuller Offline
Registered User
 
Join Date: Jun 2005
Location: UK
Posts: 4,359
linuxfedorakonqueror
Re: Samba Server not visible

Hello NickC

I'm only talking about where it ends up for KDE here, Gnome is a mystery to me.

However, in KDE, after installing "policycoreutils-gui" I have an entry in the Administration menu labelled "SELinux Management".

In that is the "Boolean" entry for various samba options.

Also there is the option to change the "System Default Enforcing Mode" from "Enforcing" to "Permissive" or "Disabled".
Reply With Quote
  #9  
Old 9th April 2012, 03:53 PM
NickC Offline
Registered User
 
Join Date: Jan 2009
Posts: 72
windows_98_nt_2000firefox
Re: Samba Server not visible

Think I might have found part of the problem:

findsmb discovers the corect NetBios Name and Workgroup but the wrong IP Address. This lists the IP address of the KVM created Virtual NIC 192.168.122.1 as opposed to the p7p1 addy of 192.168.10.34. How do I change which network interface Samba is bound to?

This behaviour might also explain why I have not been able to get networking working on any of the other Linux distros either. As my prime purpose for this machine is as a KVM host for Windows I have installed KVM on each of those as well. Maybe this is a Samba bug caused by installing QEMU-KVM first?
Reply With Quote
  #10  
Old 9th April 2012, 04:05 PM
bbfuller Offline
Registered User
 
Join Date: Jun 2005
Location: UK
Posts: 4,359
linuxopera
Re: Samba Server not visible

Ah, you'd never mentioned virtual machines up to now.

No experience with those at all yet I'm afraid so I can't help. I seem to vaguely remember from reading the documentation that there is a way of binding samba to a particular interface but I'll have to leave you to look that up.
Reply With Quote
  #11  
Old 9th April 2012, 07:45 PM
NickC Offline
Registered User
 
Join Date: Jan 2009
Posts: 72
windows_98_nt_2000firefox
Re: Samba Server not visible

Quote:
Originally Posted by bbfuller View Post
Ah, you'd never mentioned virtual machines up to now.

No experience with those at all yet I'm afraid so I can't help. I seem to vaguely remember from reading the documentation that there is a way of binding samba to a particular interface but I'll have to leave you to look that up.
Well no I didn't know the KVM virtualization bit was relevent, trying to keep things simple.

However, I have now completely uninstalled Samba, deleted smb.conf, rebooted and reinstalled Samba. Now when I stop & start the samba service I get a message:
Unit Samba.service failed to load: No such file or directory.
I then run systemctl status samba.service which returns:
Loaded: error (Reason: no such file or directory)
Active: inactive (dead)
and this is with the default clean installed smb.conf

So question is does Samba actually work with Fedora 16?
Reply With Quote
  #12  
Old 9th April 2012, 08:02 PM
bbfuller Offline
Registered User
 
Join Date: Jun 2005
Location: UK
Posts: 4,359
linuxfirefox
Re: Samba Server not visible

Hello NickC

That it certainly does. I use it all the time here for Linux/Linux sharing as well as Linux/Windows.

How did you install/uninstall it?

Samba usually writes its own configuration files as it installs.

Try:

Code:
yum list installed | grep samba
and let's see if we can deduce what you have missing.

As a basic checklist for what you need to remember while configuring samba is that you need to have:

a) correct Linux permissions on a share.

b) correct samba permissions on the same share.

c) you may need the same usernames and passwords on both machines to allow some types of sharing.

d) you need both the smb and nmb services running.

e) samba needs allowing in the firewall.

f) all of our aforementioned SELinux considerations need attention.
Reply With Quote
  #13  
Old 10th April 2012, 02:40 PM
NickC Offline
Registered User
 
Join Date: Jan 2009
Posts: 72
windows_98_nt_2000firefox
Re: Samba Server not visible

It appears that the command
systemctl status samba.service
doesn't work but
systemctl status smb.service
systemctl status nmb.service
do work correctly.

Only problem I have is accessing shares of NTFS permissions. These do not seem to have correct permissions set to enable a user to share them and because they are NTFS partitions there does not appear to be any way to change their permissions?

---------- Post added at 02:40 PM ---------- Previous post was at 01:51 PM ----------

Update:

I now have an external machine getting through to the Linux shares on my \\VMHost but still got the permissions problem accessing the Windows NTFS shares.


Nick
Reply With Quote
  #14  
Old 10th April 2012, 10:07 PM
bbfuller Offline
Registered User
 
Join Date: Jun 2005
Location: UK
Posts: 4,359
linuxopera
Re: Samba Server not visible

Hello NickC

Quote:
systemctl status samba.service
won't work because although Fedora has samba packages, it doesn't have a samba service.

Some distributions do have a single samba service others go the Fedora way and split it into two, smb and nmb.

As to accessing NTFS shares, that should be no more difficult that accessing Linux shares. Samba should make it transparent.

Are your windows machines able to see each others shares?

What sort of sharing are you doing, user or share?

If it's the former, do you have those users enabled on the windows machines?

I assume you are talking about NTFS shares on the Windows machines and not that you have created NTFS partitions on the samba server?
Reply With Quote
  #15  
Old 11th April 2012, 10:11 AM
NickC Offline
Registered User
 
Join Date: Jan 2009
Posts: 72
windows_98_nt_2000firefox
Re: Samba Server not visible

Hi bbfuller, these shares are not on seperate machines just NTFS partitions on the Samba/KVM Server. NTFS-3g installed to allow Fedora acces to these NTFS partitions.

I can access the Linux shares ok just not the NTFS ones. I think the problem is that the permissions of the NTFS ones are by default root only and I can't see any way of changing those permissions.

Nick
Reply With Quote
Reply

Tags
samba, server, visible

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba shares available only after OKing them in Samba server config tool gizenshu Servers & Networking 1 1st October 2010 06:08 PM
Help w/ Samba & Fedora 11 - Only some shares visible mrlament Using Fedora 0 6th July 2009 12:37 AM
Samba shares not visible linuxrabbi Using Fedora 2 6th October 2008 08:49 AM
Site only visible through https, want only visible through http. jackliddle Servers & Networking 3 4th June 2008 07:07 PM
Samba shares not visible KrGAce Servers & Networking 5 12th July 2007 09:46 PM


Current GMT-time: 04:14 (Monday, 28-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat