LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Webmin & Samba (https://www.linuxquestions.org/questions/linux-newbie-8/webmin-and-samba-86426/)

thelem 08-27-2003 07:51 PM

Webmin & Samba
 
Hi,

I'm having a couple of networking problems which I suspect are related.

My host box is Mandrake 9.1, with two network cards - one for the cable modem and one for the internal network (IP: 192.168.1.1)
The client is Windows 2000, it is configured by DCHP to the linux box and currently has an IP address of 192.168.1.252
Both are in the 'mdkgroup' workgroup.

When I access webmin on the linux box it works fine (https://localhost:10000), but when I try to access it from windows (Mozilla 1.4 and IE5) I am told the connection is refused. I have checked and it is set to allow access from all IP addresses.

My second problem is with samba. When I first setup a share I could access it no problem, but now it has stopped working, I think this broke when the computer was first rebooted. For a while I could see the computer in Network Neighbourhood, but now it is not even then. I have tried Start > Run > \\192.168.1.1 but it tells me "The Network Path was not found". I have tried restarting samba in webmin, but this does not make any difference.

I can ping the linux machine fine, and I am even using it as the host for internet connection sharing, but I can't get these working. Does anyone have any ideas?

Thanks in advance,
Ian

thelem 08-28-2003 05:24 AM

any ideas?

Hamsjael 08-28-2003 07:15 AM

Hi thelem

try this in a console:
smbd killall (stops all samba)
smbd -D (starts sambaserver)
nmbd -D (starts Netbios so you can see it on the network)

good luck

Hamsjael

thelem 08-28-2003 07:58 AM

Thanks. It says smbd: command not found

I also tried samba killall and smb killall but they didn't work. Do I need to install a file somewhere?

I first used samba by sharing a directory via the properties panel for that directory.

Hamsjael 08-28-2003 08:04 AM

hmmm.. are you sure samba IS installed?

try looking in /etc/samba for the smb.conf file.

maybe smbd is not in your path but i think that is unlikely.
Try searching for smbd and nmbd and start them from their home dirs if they exist. otherwise try reinstalling the samba suite.

good luck

Hamsjael

thelem 08-28-2003 03:56 PM

I found smbd in /usr/sbin and ran the 3 commands you mentioned from that directory. They all returned to the command prompt fairly quickly with no message.

I had a look at the logs. The last entry in nmbd.log is:
Quote:

Netbios nameserver version 2.2.7a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/08/28 09:46:10, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(404)
*****

Samba name server DHCP-260-16119 is now a local master browser for workgroup MDKGROUP on subnet [my internet ip address]

*****
[2003/08/28 09:46:10, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(404)
*****

Samba name server DHCP-260-16119 is now a local master browser for workgroup MDKGROUP on subnet 192.168.1.1

*****
Higher up in the log it refers to "samba nameserver TIGER" (which is what the computer should be called). For some reason this name has been lost.

The last entry in smbd.log is

Quote:

Netbios nameserver version 2.2.7a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/08/28 09:46:10, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(404)
*****

Samba name server DHCP-260-16119 is now a local master browser for workgroup MDKGROUP on subnet 82.32.59.228

*****
[2003/08/28 09:46:10, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(404)
*****

Samba name server DHCP-260-16119 is now a local master browser for workgroup MDKGROUP on subnet 192.168.1.1

*****
There is also an empty file called log.koala. Koala is another computer in my network that has tried to access tiger.

Thanks for your help.

thelem 08-28-2003 04:59 PM

I have managed to rename the computer to tiger using webmin, but I still can't access it.

I have also tried setting up SSH, and I cannot access that from my other computer either - it says connection refused. I am starting to think that possibly I have some form of firewall blocking these that I don't remember installing. I looked around webmin and have played with some shorewall settings, but with no difference.

These are my currently running processes:
init
[keventd]
[kapmd]
[ksoftirqd_CPU0]
[kswapd]
[bdflush]
[kupdated]
[mdrecoveryd]
[kjournald]
devfsd /dev
[khubd]
[kjournald]
[eth0]
/sbin/dhclient -1 -q -lf /var/lib/dhcp/dhclient-eth0.leases -pf /var/run/dhclien ...
/sbin/ifplugd -w -b -i eth1
[portmap]
syslogd -m 0
klogd -2
[rpc.statd]
[xfs]
/usr/sbin/apmd -p 10 -w 5 -W -P /usr/sbin/pmsuspend
/bin/sh /etc/X11/prefdm
/usr/sbin/autologin
/bin/sh /usr/X11R6/bin/startx
xinit /etc/X11/xinit/xinitrc -- -deferglyphs 16
[X]
/bin/sh /usr/bin/startkde
kwrapper ksmserver
[atd]
saslauthd -a pam -T
saslauthd -a pam -T
saslauthd -a pam -T
saslauthd -a pam -T
saslauthd -a pam -T
named 09:39 [named]
named 09:39 [named]
named 09:39 [named]
named 09:39 [named]
named 09:39 [named]
xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
[fam]
cupsd
/usr/sbin/dhcpd -cf /etc/dhcpd.conf -lf /var/lib/dhcp/dhcpd.leases -q eth1
kdeinit: Running...
/usr/bin/artsd
kdeinit: kwin -session
kdeinit: konsole
/bin/bash
kdeinit: konqueror --silent
kdeinit: konsole
/bin/bash
[su]
bash
kdeinit: konqueror --silent
kdeinit: konqueror --silent
kdeinit: kio_file file /tmp/ksocket-alison/klauncherdVTOJa.slave-socket
/tmp/kso ...
kdeinit: dcopserver --nosid
kdeinit: klauncher
kdeinit: kded
httpd2 -f /etc/httpd/conf/httpd2.conf
/usr/bin/perl /usr/sbin/advxsplitlogfile
[httpd2]
[httpd2]
[httpd2]
{httpd2]
[httpd2]
[httpd2]
[httpd2]
[httpd2]
crond
/usr/bin/lisa -c /etc/lisarc
/sbin/mingetty tty1
/sbin/mingetty tty2
/sbin/mingetty tty3
/sbin/mingetty tty4
/sbin/mingetty tty5
/sbin/mingetty tty6
kdeinit: knotify
kdeinit: ksmserver
kdeinit: kdesktop
kdeinit: kicker
/bin/sh
/usr/local/netscape/run-mozilla.sh /usr/local/netscape/netscape-bin
kdeinit: klipper
kdeinit: kwrited
korgac --miniicon korganizer
kalarmd --login
kdeinit: kio_uiserver
[kdesud]
/usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
/usr/sbin/sshd

thelem 08-31-2003 12:06 PM

If anyone is interested the problem turned out to be the iptables firewall. If you configure it using shorewall then there are instructions for allowing samba to work on http://www.shorewall.net/samba.htm

Ian


All times are GMT -5. The time now is 09:22 AM.