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 |
any ideas?
|
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 |
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. |
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 |
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:
The last entry in smbd.log is Quote:
Thanks for your help. |
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 |
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. |