LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2003, 07:51 PM   #1
thelem
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 6

Rep: Reputation: 0
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
 
Old 08-28-2003, 05:24 AM   #2
thelem
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
any ideas?
 
Old 08-28-2003, 07:15 AM   #3
Hamsjael
Member
 
Registered: Aug 2003
Location: Vejle, Denmark
Distribution: Mainly Debian, some Fedora for the bleeding edge fix
Posts: 92

Rep: Reputation: 15
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
 
Old 08-28-2003, 07:58 AM   #4
thelem
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 08-28-2003, 08:04 AM   #5
Hamsjael
Member
 
Registered: Aug 2003
Location: Vejle, Denmark
Distribution: Mainly Debian, some Fedora for the bleeding edge fix
Posts: 92

Rep: Reputation: 15
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
 
Old 08-28-2003, 03:56 PM   #6
thelem
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 08-28-2003, 04:59 PM   #7
thelem
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 08-31-2003, 12:06 PM   #8
thelem
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
  


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
Getting samba to work with webmin avidwriter Linux - Networking 0 04-11-2005 06:14 AM
Webmin and Samba admstng Linux - Software 1 03-25-2005 05:18 PM
webmin and samba go fubar on me... Lleb_KCir Linux - Software 1 05-25-2004 09:02 PM
Samba & Webmin the anti-riced Linux - Newbie 4 01-29-2004 08:08 AM
configuring SAMBA with webmin thegreatgatsby Linux - Networking 3 09-26-2003 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:17 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration