LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-16-2008, 09:07 PM   #1
dave247
Member
 
Registered: May 2004
Posts: 204

Rep: Reputation: 30
Question Fedora 8: Trying to figure out how to set up SAMBA with Windows XP


So I have two computers on a network with a Linksys router. All I want to do is make my Fedora 8 box a file server with SAMBA but I have no idea what I need to do. Yes I am reading the smb.conf file and I have looked over the smb.conf man page. I also have some ebooks and also an old Linux text book that are all talking about how to do this, but as usual, I am still having trouble. I just dont know exactly what I need to change in the smb.conf file to get this working. Also, I'm not sure what I need to do on my Windows XP box either.

Can someone help me out or point me to a step by step process of this? (Step by step of Fedora 8 with XP specifically).

Thanks, and I am trying my hardest to learn here...
 
Old 04-16-2008, 11:20 PM   #2
agerardi
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
One thing is that all networked machines need to be on the same work group. Need to check that the smb.conf file is edited for the same work groups as your other windows xp machines. A very good program for working with your samba server is a program that normally is installed is SWAT.
 
Old 04-16-2008, 11:28 PM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Start at Samba's site - they have a huge "book" that works through a whole lot of setups.

Once Samba works, all you need to do from Windows is to map a network drive, and you can do this from Explorer
 
Old 04-17-2008, 12:34 AM   #4
dave247
Member
 
Registered: May 2004
Posts: 204

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by billymayday View Post
Start at Samba's site - they have a huge "book" that works through a whole lot of setups.

Once Samba works, all you need to do from Windows is to map a network drive, and you can do this from Explorer
lol, I didnt even think of looking at their site. I'm there now though and it looks very helpful. Thanks!!
 
Old 04-17-2008, 12:35 AM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
No probs. Given what a lot of app sites are like, I can't say I entirely blame you. Samba's is good though
 
Old 04-17-2008, 09:54 AM   #6
dave247
Member
 
Registered: May 2004
Posts: 204

Original Poster
Rep: Reputation: 30
Well I am still having trouble. Let me post what I have so far:

Windows XP Pro system: My Workgroup is WORKGROUP

Fedora 8:

I have the smb.conf file configured with each edited section this way:

Code:
[global]

workgroup = WORKGROUP
	server string = Samba Server Version %v
	hosts allow = 127. 192.168.

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

[share1]
	path = /home/heetsmb
Now I started up samba and went to my XP system and went to map a drive but I don't see anything available from Fedora. I'm not sure what to do at this point.

Last edited by dave247; 04-17-2008 at 09:56 AM.
 
Old 04-17-2008, 12:13 PM   #7
agerardi
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
Another item to check are your smb and nmb services running?

Example

ps -ef | grep smb

ps -ef | grep nmb
 
Old 04-17-2008, 02:14 PM   #8
SP_Kenny
LQ Newbie
 
Registered: Mar 2008
Posts: 22

Rep: Reputation: 15
Here are some key points from mine. This is a server that gets taken to LAN party's and works great.



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

[global]

# ----------------------- Netwrok Related Options -------------------------

	workgroup = workgroup
	server string = Kennycom

	netbios name = Kennycom

	interfaces = lo eth1 //<-- if only 1 NIC then use eth0
;	hosts allow = 127. 192.168.12. 192.168.13.






	security = share
	passdb backend = tdbsam




	domain master = yes

	os level = 33
	preferred master = yes




	wins support = yes
	wins server = 192.168.1.141  // <-- I used the same IP that samba runs on
	wins proxy = yes



	load printers = no
	cups options = raw

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

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


[fun_stuff]
	path = /home/public/fun_stuff
;	writeable = No
;	browseable = yes
	guest ok = yes

[gamefiles]
	path = /home/public/gamefiles
;	writeable = No
;	browseable = yes
	guest ok = yes

[movies]
	path = /home/public/movies
;	writeable = No
;	browseable = yes
	guest ok = yes

[public upload]
	path = /home/public/public upload
	writeable = yes
;	browseable = yes
	guest ok = yes

[tv_shows]
	path = /home/public/tv_shows
;	writeable = No
;	browseable = yes
	guest ok = yes

[stuff]
	path = /gameserv/public/stuff
;	writeable = no
	browseable = no
	guest ok = yes
after tweaking your cfg do this:

service smb stop
service nmb stop
service smb start
service nmb start



you could do a restart on each... I prefer to manually do it

Last edited by SP_Kenny; 04-17-2008 at 02:21 PM.
 
Old 04-17-2008, 02:25 PM   #9
SP_Kenny
LQ Newbie
 
Registered: Mar 2008
Posts: 22

Rep: Reputation: 15
After looking at what I had posted up there I have a question for everyone..

Can I use eth1 in this string?:

wins server = 192.168.1.141

Like I did here:

interfaces = lo eth1
 
Old 04-21-2008, 05:43 PM   #10
dave247
Member
 
Registered: May 2004
Posts: 204

Original Poster
Rep: Reputation: 30
hmm, im still not getting it to work. However, I go to map a drive in XP and I do see a localhost computer in the network which wasnt there before, which I think is SAMBA. But I click on it and I can log in or do anything. What might I be doing wrong?
 
Old 04-21-2008, 07:17 PM   #11
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Step 1 - try it with SELinux off (setenforce 0 as root in a terminal - only lasts til reboot)

Step 2 make sure you've allowed samaba traffic in your firewall. I would think security setting will allow for Samba, otehrwise open ports 137-139 and optionally 445. Perhaps just diasable iptables while you test (service iptables stop)

Give you Server String a better name than localhost (although the fact you have that suggests tha tyou ay have some more configutration to go)
 
Old 04-21-2008, 07:51 PM   #12
dave247
Member
 
Registered: May 2004
Posts: 204

Original Poster
Rep: Reputation: 30
Thanks for the input Bill. However, I already have SELinux off and my basic XP firewall too, and I also renamed my server Fedora8box, which now shows up in the Drive Map search results. I can see computers on the network but there are no folders i can click on under Fedora8box... I guess that means I need to share one, but I thought I already did that. Let me try again...
 
Old 04-21-2008, 08:09 PM   #13
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Post the general and share sections of your config (ie cut the comments crap out)
 
Old 04-21-2008, 08:20 PM   #14
dave247
Member
 
Registered: May 2004
Posts: 204

Original Poster
Rep: Reputation: 30
Code:
[global]

	workgroup = WORKGROUP
	server string = Samba Server Version %v

;	netbios name = MYSERVER

;	interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24 
	hosts allow = 127. 192.168.

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


[share1]
	path = /home/heetsmb
	writeable = yes
	browseable = yes
	guest ok = yes

[Public]
	path = /root/Public
	writeable = yes
;	browseable = yes
	guest ok = yes
 
Old 04-21-2008, 08:32 PM   #15
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
First thing is you need security. What are you planning? Perhaps start with security = share.
 
  


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
Cannot figure out how to set DPI correctly!!! rngetter Ubuntu 3 03-09-2008 03:22 AM
Can't figure out how to set up NAT/iptables is confusing rcx11 Linux - Networking 5 05-05-2007 06:37 PM
Using a Windows XP client to set permissions on a Samba share Wendellz Linux - Software 2 02-09-2007 09:01 AM
can't figure out how to mount windows xp on fedora sabenfox Linux - Newbie 2 12-07-2005 11:59 PM
New windows installation doesn't set up profiles with samba server drjekyll Linux - Newbie 2 05-25-2004 01:59 PM


All times are GMT -5. The time now is 07:27 AM.

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