I am setting up SAMBA on a RedHat 6.2 Linux box for a friend (it is actually running under VMWARE).
I can not get the SMBD to stay running. It starts, creates a PID file in /var/lock/samba, but then exits saying that a port is already in use. I have added entries to /etc/inetd.conf already. It also doesn't start automatically.
any clue? This should be a fairly vanilla install. I had originally setup the computer to run on DHCP, but have changed it to static. I wanted to get this system to my buddy by Tuesday, but I can wait til Wednesday or so.
--------------------------------------------------------
Here is my inetd.conf settings:
# SAMBA NetBIOS services (for PC file and print sharing)
netbios-ssn stream tcp nowait root /usr/sbin/smbd smbd
netbios-ns dgram udp wait root /usr/sbin/nmbd nmbd
--------------------------------------------------------
Here is the error I get with level 3 debugging on smbd:
[2000/12/24 15:10:25, 3] param/loadparm.c:lp_add_ipc(1566)
adding IPC service
[2000/12/24 15:10:25, 2] lib/interface.c:add_interface(83)
added interface ip=192.168.10.2 bcast=192.168.10.255 nmask=255.255.255.0
[2000/12/24 15:10:25, 1] smbd/files.c:file_init(216)
file_init: Information only: requested 10000 open files, 1014 are available.
[2000/12/24 15:10:25, 3] smbd/server.c:main(699)
loaded services
[2000/12/24 15:10:25, 3] smbd/server.c:main(707)
Becoming a daemon.
[2000/12/24 15:10:25, 3] locking/shmem_sysv.c:sysv_shm_open(706)
Initialised IPC area of size 1048576
[2000/12/24 15:10:25, 0] lib/util_sock.c:open_socket_in(853)
bind failed on port 139 socket_addr=0.0.0.0 (Address already in use)
[2000/12/24 15:10:25, 2] smbd/server.c:exit_server(408)
Closing connections
[2000/12/24 15:10:25, 3] smbd/server.c:exit_server(435)
Server exit (caught signal)
[2000/12/24 15:11:31, 1] smbd/server.c:main(643)
smbd version 2.0.6 started.
Copyright Andrew Tridgell 1992-1998
[2000/12/24 15:11:31, 1] smbd/files.c:file_init(216)
file_init: Information only: requested 10000 open files, 1014 are available.
thanks for any help!
by: jleviePosted on 2000-12-24 at 21:11:49ID: 45503
Are you saying that Linux is running as a "guest OS" under VMware? I know that one can run Samba under Linux running as the master OS and have windows running as a VMware "guest OS" be able to access the SMB services. I'm not so sure that you'd be able to do so the other way around.
On the chance that it is possible to have Samba work when Linux is running as a "guest OS", it would seem that something has the SMB ports open. This would most likely be another copy of Samba already running and you should see the smbd & nmbd tasks in a "ps -ef" list. Also you could use lsof to see what task "owns" ports 137 & 139.