LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Fedora 8: Trying to figure out how to set up SAMBA with Windows XP (https://www.linuxquestions.org/questions/fedora-35/fedora-8-trying-to-figure-out-how-to-set-up-samba-with-windows-xp-635859/)

dave247 04-16-2008 08:07 PM

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

agerardi 04-16-2008 10:20 PM

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.

billymayday 04-16-2008 10:28 PM

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

dave247 04-16-2008 11:34 PM

Quote:

Originally Posted by billymayday (Post 3123656)
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!!

billymayday 04-16-2008 11:35 PM

No probs. Given what a lot of app sites are like, I can't say I entirely blame you. Samba's is good though

dave247 04-17-2008 08:54 AM

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.

agerardi 04-17-2008 11:13 AM

Another item to check are your smb and nmb services running?

Example

ps -ef | grep smb

ps -ef | grep nmb

SP_Kenny 04-17-2008 01:14 PM

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

SP_Kenny 04-17-2008 01:25 PM

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

dave247 04-21-2008 04:43 PM

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?

billymayday 04-21-2008 06:17 PM

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)

dave247 04-21-2008 06:51 PM

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

billymayday 04-21-2008 07:09 PM

Post the general and share sections of your config (ie cut the comments crap out)

dave247 04-21-2008 07:20 PM

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


billymayday 04-21-2008 07:32 PM

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


All times are GMT -5. The time now is 12:55 PM.