LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-09-2009, 06:58 PM   #1
bourne
Member
 
Registered: Feb 2006
Location: Toronto, Ontario
Distribution: Fedora 10, centos
Posts: 181

Rep: Reputation: 30
fedora 10 + samba


Hey guys..

I am attempting to use an old machine that I have as a file server. I want to be able to access apps and music that I will be storing on this machine on all the machines in my small network. Currently I have 3 computers in a workgroup called "inhouse". They are all attached to a Dlink router. I have setup my samba share directory setup on my file server formatted as vfat. Here is my config file:

Code:
#======================= Global Settings =====================================

[global]

        workgroup = INHOUSE
        server string = music share
        hosts allow = 192.168.1.
        netbios name = server
        dns proxy = no
        security = user

# --------------------------- Logging Options -----------------------------

        # 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 ------------------------

        security = user
        passdb backend = tdbsam

# --------------------------- Printing Options -----------------------------

        load printers = yes
        cups options = raw

#============================ 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


[music]
        comment = Music Share
        path = /share/music
        valid users = bourne
        public = Yes
        writable = Yes
        printable = No
        create mask = 0765
        guest ok = Yes
I am sure that there is something wrong in here because after I restart my samba server I am unable to see my share on any of the other computers in my network. They are both running windows XP.
According to my linux box the samba server is running fine.

Code:
[root@server ~]#  smbclient -L 192.168.1.102 -U bourne
Enter bourne's password: 
Domain=[SERVER] OS=[Unix] Server=[Samba 3.2.8-0.27.fc10]

	Sharename       Type      Comment
	---------       ----      -------
	music           Disk      Music Share
	IPC$            IPC       IPC Service (music share)
	bourne          Disk      Home Directories
Domain=[SERVER] OS=[Unix] Server=[Samba 3.2.8-0.27.fc10]

	Server               Comment
	---------            -------

	Workgroup            Master
	---------            -------
When running this command it seems as though my samba isn't putting my machine into the right workgroup.

I do not have DNS or a Domain running, I would like to do this via the workgroup if it is at all possible. I have enabled netbios over tcp/ip on my windows xp machine as well I have disabled all firewalls running on all machines and still nothing.

When I attempted the netview command on my windows xp machine I get the following error message:
Code:
System error 53 has occured.

The network path was not found.
I have looked this error code up on google and have tried all of the fixes suggested but still nothing. Can anyone perhaps point me in the direction to better trouble shoot what is causing this problem?

Any help would greatly be appreciated
Oh and I should mention that security at this point isn't a big deal.. I would just like to get it working. I will worry about the security once it is working

thanks again guys


cheers
 
Old 03-13-2009, 09:20 PM   #2
bourne
Member
 
Registered: Feb 2006
Location: Toronto, Ontario
Distribution: Fedora 10, centos
Posts: 181

Original Poster
Rep: Reputation: 30
Hello again....

Thank you for all the helpful views... I guess I am not the only one that finds samba a little confusing..

I managed to figure out why my linux machine wasn't visible on the network. When you are using netbios name on the network there is an additional service that you must enable along with the smb service to get the linux box to actually send its netbios name.

I enabled this service:
Code:
service nmb start
As soon as I turned this on the computer became visible on the network. However when I try and access it from my windows machine I am getting a strange error.. at least to me its strange since I don't have any security in place at this time:
http://img254.imageshack.us/img254/1...ererror.th.jpg

I have disabled all of the security in the samba config and on both machine (firewalls and the like). Is there something else that I am forgetting to add to allow access to my linux file share?


Thank you in advance


cheers
 
Old 03-17-2009, 01:14 PM   #3
bourne
Member
 
Registered: Feb 2006
Location: Toronto, Ontario
Distribution: Fedora 10, centos
Posts: 181

Original Poster
Rep: Reputation: 30
Hey guys..

Just wanted to update that I actually managed to get it working. After trying everything under the sun I came across an article that mentioned entries that needed to be out into iptables. I forgot completely about iptables. I flushed it out and now everything is working great.

I will have to make the necessary adjustments to my iptables in order to allow for the samba connections to pass through the firewall.


Thanks for the help


cheers
 
Old 03-18-2009, 05:46 AM   #4
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
I have realised one thing in your posts, (and many other posts which remain unreplied)
-First these people seem to know a what they are doing and give out a lot of information
(This leads to pple to brush away obvious caveats)
-Second, most of info given actually says they have tried this and that when in fact they didnt exhaust such options
(e.g. "I have turned off all firewalls etc" and finally it turn out to be iptables problem)

Anyway, From Fedora 8 smb and nmb services were separated and you need to start them separately of use a script for that.
 
  


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-4 with Samba. linux-india Linux - Newbie 1 10-31-2006 09:44 AM
help with Samba Fedora 5 shanemort Linux - Software 3 10-31-2006 04:55 AM
fedora 5, samba and samba console Andrus Linux - Software 0 04-08-2006 12:54 AM
samba in fedora nithin_bhaskar Linux - Networking 1 06-09-2004 03:03 PM
fedora and samba milesstandish Linux - Networking 1 03-22-2004 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:03 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