I did a complete installation of Red Hat 7.2 on my Dell Inspiron 5000 laptop from RH6.2. I had SAMBA running on it fine until I wiped my hard drive and installed RH 7.2. So now I have to learn how to set up SAMBA with xinetd. I saw a newer version of SAMBA on the SAMBA.org web site so I downloaded it. After reading the INSTAll file and following the instructions it created an RPM in: /usr/src/redhat/RPMS/i386/samba-2.2.3a-20020206.i386 so I then did this: rpm -ivh /usr/src/redhat/RPMS/i386/samba-2.2.3a-20020206.i386.rpm and of course it saw there was already a previous version of samba installed so it wouldn't complete the installation. I then forced the install with the --force option. So it is installed now. When I type smbd -D nothing happens. There is no instance of smbd running when I do a ps -aux. When I type nmbd -D it starts and I can see it with ps -aux. What happened to smbd -D? After a "man smbd" I saw the -i switch. Here is what I get when I type smbd -i: Copyright Andrew Tridgell and the Samba Team 1992-2002 bind failed on port 139 socket_addr = 0.0.0.0. Error = Address already in use What does this mean? Is this because I forced the rpm over the top of an already installed samba? I tried to install the rpm using the -U switch but it wouldn't install either so I forced it with --force. If I do a "cat /var/log/samba/smbd.log" I get: [root@penguin samba] cat /var/log/samba/smbd.log [2002/02/17 04:10:03, 0] lib/util_sock.c:open_socket_in(789) bind failed on port 139 socket_addr = 0.0.0.0. Error = Address already in use What is this? What can I do to get out of this mess? I just want to run a simple SAMBA server for my small home network. p.s. My wife is gunna kill me if I spend another 14 hours on this! Thank you. __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com
Eric, Understand the wife thing <grin>... Always (arguable by some, but I'm talking experience here) uninstall any previous Samba RPMs first. So, going back to square one: 1. rpm -qa | grep samba 2. uninstall any results 3. rpm -ivh sambafile The reason you can't start samba from the command line is because it's not on the path. Once you get things sorted out and you've install the Samba-built rpm, try (as root) service smb start Best, /tom --On Sunday, February 17, 2002 07:05 -0800 Eric Games <frequencydrive@yahoo.com> wrote:> I did a complete installation of Red Hat 7.2 on my Dell Inspiron 5000 > laptop from RH6.2. I had SAMBA running on it fine until I wiped my > hard drive and installed RH 7.2. So now I have to learn how to set up > SAMBA with xinetd. I saw a newer version of SAMBA on the SAMBA.org > web site so I downloaded it. After reading the INSTAll file and > following the instructions it created an RPM in: > > /usr/src/redhat/RPMS/i386/samba-2.2.3a-20020206.i386 > > so I then did this: > > rpm -ivh /usr/src/redhat/RPMS/i386/samba-2.2.3a-20020206.i386.rpm > > and of course it saw there > was already a previous version of samba installed so it wouldn't > complete the installation. I then forced the install with the --force > option. So it > is installed now. When I type smbd -D nothing happens. There is no > instance of smbd running when I do a ps -aux. When I type nmbd -D it > starts and I can see it with ps -aux. What happened to smbd -D? After > a "man smbd" I saw the -i switch. Here is what I get when I type > smbd -i: > > Copyright Andrew Tridgell and the Samba Team 1992-2002 > bind failed on port 139 socket_addr = 0.0.0.0. > Error = Address already in use > > What does this mean? Is this because I forced the rpm over the top of > an already installed samba? I tried to install the rpm using the -U > switch but it wouldn't install either so I forced it with --force. > If I do a "cat /var/log/samba/smbd.log" I get: > > [root@penguin samba] cat /var/log/samba/smbd.log > [2002/02/17 04:10:03, 0] lib/util_sock.c:open_socket_in(789) > bind failed on port 139 socket_addr = 0.0.0.0. > Error = Address already in use > > > What is this? What can I do to get out of this mess? I just want to > run a simple SAMBA server for my small home network. > > p.s. My wife is gunna kill me if I spend another 14 hours on this! > > Thank you. > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Sports - Coverage of the 2002 Olympic Games > http://sports.yahoo.com > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
> > is installed now. When I type smbd -D nothing happens. There is no > > instance of smbd running when I do a ps -aux. When I type nmbd -D it > > starts and I can see it with ps -aux. What happened to smbd -D? After > > a "man smbd" I saw the -i switch. Here is what I get when I type > > smbd -i: > > > > Copyright Andrew Tridgell and the Samba Team 1992-2002 > > bind failed on port 139 socket_addr = 0.0.0.0. > > Error = Address already in use > > > > What does this mean? Is this because I forced the rpm over the top of > > an already installed samba? I tried to install the rpm using the -U > > switch but it wouldn't install either so I forced it with --force. > > If I do a "cat /var/log/samba/smbd.log" I get: > > > > [root@penguin samba] cat /var/log/samba/smbd.log > > [2002/02/17 04:10:03, 0] lib/util_sock.c:open_socket_in(789) > > bind failed on port 139 socket_addr = 0.0.0.0. > > Error = Address already in useSamba uses the TCP/IP-prot 139. But it can not start, because an user programm allready uses thist prot: Brute force: reboot the machine and try again (just to be sure that there is no old version of samba runnning). If this doesn't work, you have to check out what process uses prot 139. "fuser" has an option to find that out. check (x)inetd, look at the output of "ps auwxf" and think what it could be. Kill every thing you are not sure you realy need it (you may lear that you need it). Christian _(_)_ wWWWw _ @@@@ (_)@(_) vVVVv _ @@@@ (___) _(_)_ @@()@@ wWWWw (_)\ (___) _(_)_ @@()@@ Y (_)@(_) @@@@ (___) `|/ Y (_)@(_) @@@@ \|/ (_)\ / Y \| \|/ /(_) \| |/ | \ | \ |/ | / \ | / \|/ |/ \| \|/ jgs|// \\|/// \\\|//\\\|/// \|/// \\\|// \\|// \\\|// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^