Fedora Linux Support Community & Resources Center
  #1  
Old 26th November 2007, 12:55 AM
avrohomg Offline
Registered User
 
Join Date: Nov 2007
Posts: 30
Samba Nightmare!!

Hello,

I am having a real nightmare setting up a Samba share between Fedora 8 and Windows XP. The setup seemed straight forward, but it's just not working. I enabled Samba in my firewall, made sure nmb is running, but whenever I try to map a Windows drive to the share, or even open it in Windows Explorer, I get the following error in /var/log/messages:

Nov 25 19:37:37 localhost smbd[20825]: [2007/11/25 19:37:37, 0] lib/access.c:check_access(327)
Nov 25 19:37:37 localhost smbd[20825]: Denied connection from (192.168.2.204)
Nov 25 19:37:37 localhost smbd[20826]: [2007/11/25 19:37:37, 0] lib/access.c:check_access(327)
Nov 25 19:37:37 localhost smbd[20826]: Denied connection from (192.168.2.204)

Below is an excerpt from smb.conf


#======================= Global Settings =====================================

[global]

# ----------------------- Netwrok Related Options -------------------------
#
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
#
# server string is the equivalent of the NT Description field
#
# netbios name can be used to specify a server name not tied to the hostname
#
# Interfaces lets you configure Samba to use multiple interfaces
# If you have multiple network interfaces then you can list the ones
# you want to listen on (never omit localhost)
#
# Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
# specifiy it as a per share option as well
#
workgroup = simiplex
server string = Samba Server %v

; netbios name = avrohom-prod3

interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24 192.168.2.0/24
hosts allow = 127. 192.168.12. 192.168.13. 192.168.2

# --------------------------- Logging Options -----------------------------
#
# Log File let you specify where to put logs and how to split them up.
#
# Max Log Size let you specify the max size log files should reach

# logs split per machine
log file = /var/log/samba/log.%m
# max 50KB per log file, then rotate
max log size = 50

# ----------------------- Standalone Server Options ------------------------
#
# Scurity can be set to user, share(deprecated) or server(deprecated)
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.

security = user
passdb backend = tdbsam




# --------------------------- Filesystem Options -
; map archive = no
; map hidden = no
; map read only = no
; map system = no
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
; guest ok = no
; guest account = nobody
username map = /etc/samba/smbusers
; store dos attributes = yes



#============================ Share Definitions ==============================

[homes]
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
; guest ok = no
; writable = No
printable = yes


[SimiPlexC]
comment = SimiPlexShare
path = /media/SimiPlex/root/C
writeable = yes
; browseable = yes
guest ok = yes




Any assistance would be greatly appreciated!

Thanks!

Avrohom
Reply With Quote
  #2  
Old 26th November 2007, 01:19 AM
exutable Offline
Registered User
 
Join Date: Oct 2007
Posts: 87
Funny enough I just did this EXACT thing. I shared a folder between Samba on Fedora 8 and Windows XP Pro.

The loop holes I had to jump through:

1. Turn off ALL security, which means your firewall, and ESPECIALLY SELinux(this is what my problem was)
2. Create a user on the linux box which is the same as the one on the XP box
3. I set security = share

This is how I got mine to work.

My theory is:
Set everything up without security to make sure it works, then start adding security features.
Reply With Quote
  #3  
Old 26th November 2007, 03:13 AM
avrohomg Offline
Registered User
 
Join Date: Nov 2007
Posts: 30
Hi. Thanks for your prompt reply. I had SELinux off. The firewall didn't make a difference either. However, what finally got it working was adding my subnet in the hosts allow:

hosts allow = 127. 192.168.12. 192.168.13. 192.168.2 192.168.2.0/24

The piece that got it working was 192.168.2.0/24, since my network is 192.168.2.0 with a mask of 255.255.255.0.

I hope this post will help the next person who is struggling

Regards,

Avrohom
Reply With Quote
Reply

Tags
nightmare, samba

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
gdm is a nightmare, kdm does not work... alukin Using Fedora 3 21st June 2009 04:38 PM
FC1 to FC5 nightmare Bunny Boy EOL (End Of Life) Versions 7 8th October 2006 11:17 PM


Current GMT-time: 19:52 (Monday, 20-05-2013)

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