LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-15-2005, 05:48 PM   #1
Visko
LQ Newbie
 
Registered: Mar 2004
Posts: 18

Rep: Reputation: 0
samba FC4


I read the big fat Official Samba Howto (and then tried to read up on LDAP, less successfully), and decided I'd throw up a simple Samba server/configuration to get a feel for the program.

My smb.conf looks as follows:
# Global parameters
[global]
workgroup = SCHOOL
netbios name = SUSIE
wins support = yes
server string = Visko's Server
security = USER
guest account = visko
encrypt passwords = yes
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = No
printcap name = /etc/printcap
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
guest ok = Yes
cups options = raw

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[media]
path = /Media
browseable = Yes
guest ok = Yes
writable = no
[music]
path = /Data/Mp3
browseable = Yes
guest ok = Yes
writable = no
--------------------------

When I try to connect via smbclient/localhost, I get the following:
[root@localhost samba]# smbclient //susie/media
Password:
Domain=[SUSIE] OS=[Unix] Server=[Samba 3.0.14a-2]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
---------------------------

A quick check of the log files shows this:
[root@localhost samba]# tail /var/log/samba/susie.log
[2005/10/15 15:54:32, 0] smbd/service.c:make_connection_snum(615)
'/Data/Mp3' does not exist or is not a directory, when connecting to [music]
[2005/10/15 16:01:21, 0] smbd/service.c:make_connection_snum(615)
'/Media' does not exist or is not a directory, when connecting to [media]
[2005/10/15 16:05:42, 0] smbd/service.c:make_connection_snum(615)
'/Media' does not exist or is not a directory, when connecting to [media]
[2005/10/15 16:09:07, 0] smbd/service.c:make_connection_snum(615)
'/Media' does not exist or is not a directory, when connecting to [media]
[2005/10/15 16:42:28, 0] smbd/service.c:make_connection_snum(615)
'/Media' does not exist or is not a directory, when connecting to [media]

Note: I assure you, /Media does exist. It is also a directory.
---------------------


When I try to access any share from a Windows machine, I get Error 53: could not find network path.

Most tutorials I've found so far claim that error code 53 implies a netbios resolution failure, but I get the same error using IP addresses, and I can see the computer (and its published shares) regardless of whether I use an IP address or a netbios name.

Does anyone know about firewalls/selinux/something I'm more obviously doing wrong that could be causing the lack of connectivity?

-Visko
 
Old 10-15-2005, 08:09 PM   #2
Visko
LQ Newbie
 
Registered: Mar 2004
Posts: 18

Original Poster
Rep: Reputation: 0
Fixed

Figured it out. Here's the information for anyone else who is interested:

Pull up system-config-securitylevel, and click on the selinux tab.

Scroll down to samba, and disable all SElinux handling of SMB. Core 4 selinux seems to seriously hamper the ability of samba to resolve folders back to computers requesting that information.

If anyone knows specifically where in selinux to allow for access to shares without disabling selinux for samba completely, I'd be interested in that information. I'm not versed in selinux at all, but the security suite seems to be becoming ubiquitous, and I'd better learn it eventually.

-Visko
 
Old 10-23-2005, 08:16 AM   #3
linenoise
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
Read the samba_selinux man page. It explains how to set the correct label on the share directory.

Hope this helps!
 
  


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
Samba and FC4 Linux31 Fedora - Installation 13 12-29-2005 11:39 AM
FC4 + Samba. Can anyone help? tenraek Fedora 1 10-15-2005 01:56 PM
Samba and FC4 - Helpful Link Linux31 Fedora 1 09-23-2005 03:47 AM
noob Samba on FC4 Ray4389 Linux - Networking 7 08-04-2005 12:40 PM
anyone got samba working in FC4? hlslaughter Linux - Networking 4 06-21-2005 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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