Re: Help: My girlfriends XP box can't see my Linux samba shares

From: Mihai Osian (zzz_at_zzz.com)
Date: 09/13/05


Date: Tue, 13 Sep 2005 17:27:04 +0200

Mike Martin wrote:

>Linux box CAN print to printer shared off XP box, I can see files and put
>files on that box.
>
>XP Box can NOT see Linux box.
>
>I'm fairly sure my samba.conf is correct, I believe I have a user and
>samba password that works, but the XP box doesn't even show another box on
>the network.
>
>I've goggle'd all over and read ten different sites for Samba conf but I'm
>not sure this is the problem.
>
> Mike
>
>
>
 
  Hi Mike,

Next time also show us the configuration file that you're "fairly sure"
to be correct. Without them, I suggest you do the following:
1) ps ax | grep smbd
If you get something containing "/usr/sbin/smbd -D" then samba is
running - go to step 2. If not, you probably screwed up samba.conf and
samba didn't start - run "testparm" to see what might be wrong (I
suppose you already started samba, right ?)
2) ps ax | grep nmbd
If you get something containing "/usr/sbin/nmbd -D" then your box should
also be visible on the network - go to step 3. If not, too bad...
3) smbclient -N -L localhost
Just a checkup - this should show everything is shared on your linux box.
If you got to this point, the only problem I can imagine is the Linux
firewall. Run "iptables -L -v" (as root). Hopefully you will only see
these lines:

Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination

  If that is the only output, your firewall is disabled - theoretically
everything should work. If you see more lines, disable the firewall by
running:
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
iptables -X
   Then try again. If your box is on a public network you should
re-enable the firewall after making samba work.

Mihai



Relevant Pages

  • samba drive not accessible unless iptables is stopped
    ... my windows PC cannot access a linux drive through samba ... unless iptables is stopped on the linux PC. ...
    (comp.os.linux.networking)
  • Re: Hardware setting or firewall setting
    ... I'm always amazed at how many ways something can be done in Linux ... > Mike wrote: ... I don't see how I can use the firewall settings. ... > man iptables. ...
    (alt.os.linux.suse)
  • Google Summer of Code 2009: Student applies to create a Better IPTables Management Tool
    ... a student) and select the Linux Foundation ... The tool focuses on helping the user to perceive what a particular chains of rules in a particular table does to a user specified packet. ... As the project aims for better IPtables management tool, I can contribute with my hard earned 3 years experience in maintenance of firewalls. ... The tools helps the user to either select all the rules in the chain or some particular rules and tells the impact of the application of selected rules upon the incoming/outgoing packet. ...
    (Linux-Kernel)
  • Re: [opensuse] trying to figure out how to share a data drive
    ... information about your linux setup so I can make sure we are talking ... partition that windows can read in a dual-boot scenario, ... running samba on linux, then you can share disk space just as if the operating ... your user name is 'george' If it's not, ...
    (SuSE)
  • Re: Samba Network
    ... only samba and may stay this way for a time. ... I can write from a linux box accross ... 100000 2 tcp 111 portmapper ... 100000 2 udp 111 portmapper ...
    (alt.os.linux.suse)