Im trying to enable the swat utility so that I can manipulate the smb.conf file. I have done this on my PowerMac G4 computer, and now Im trying to set it up on my iBook - but it gives me the following error, xinetd[pid]: bind failed (address already in use (errno = 48). service = swat xinetd[pid]: {init_services} no services. Exiting... I have no idea what is going on, Im doing nothing different now that before?!?!? Please can someone help? Ian
I am not entirely sure of what this error is saying. That is to say, I don't know what "address" is really referring to. xinetd, which monitors many ports and starts the appropriate daemon for each request, thinks it is supposed to be running swat for you. Which is correct. swat only runs from inetd or xinetd. However, the "address" is in use. They may mean the port, which is 901 I think, by default. I don't know what an iBook is. Have you a command like: netstat -anp | grep 901 to see if anything is binding to that port? I strongly suggest that you learn to edit your smb.conf file by hand. swat can really mess it up for you, or at least previous versions of swat would. swat is great for documentation, though. Joel On Mon, Nov 04, 2002 at 01:31:03AM +0000, Ian C Roberts wrote:> Im trying to enable the swat utility so that I can manipulate the > smb.conf file. I have done this on my PowerMac G4 computer, and now Im > trying to set it up on my iBook - but it gives me the following error, > > xinetd[pid]: bind failed (address already in use (errno = 48). > service = swat > > xinetd[pid]: {init_services} no services. Exiting... > > > I have no idea what is going on, Im doing nothing different now that > before?!?!? > > Please can someone help? > > Ian > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
Well, just guessing now. It may be that root is not an acceptable user. I am using inetd and so can't directly comment on your configuration. What happens if you try nobody or a real user not root? Joel On Mon, Nov 04, 2002 at 07:23:08PM +0000, Ian C Roberts wrote:> Nothing has bound to this port, I have tried the command....This is > the /etc/xinetd.d/swat file I am using,,,, > > > service swat > { > disable = no > socket_type = stream > port = 901 > wait = no > user = root > server = /usr/sbin/swat > server_args = -s /etc/smb.conf > groups = yes > } > > I have tried this file with " only_from = localhost and 127.0.0.1. - > and I get the same console message from the system. When I try > "http://localhost:901" (or 127.0.0.1 instead of localhost I get a > message, > "400 server error > chdir failed - the server is not configured correctly " > > Please can you try and help me again?? > > Thanks, > Ian > > PS the system is Mac OS 10.2 (jaguar) which is basically freebsd 4.4 >