Operating System - HP-UX
1832128 Members
3180 Online
110038 Solutions
New Discussion

Re: can't get swat to run to configure samba

 
SOLVED
Go to solution
Mark Vollmers
Esteemed Contributor

can't get swat to run to configure samba

Hi, all. Hopefully I won't have a ton of questions here, but I'm trying to congifure Samba (for CIFS server) and I ran into a problem. I ran the install and there were no issues. The line in /etc/services and /etc/inetd.conf pertaining to SWAT were created correctly, and match what is in the O'rilly book. But when I go to netscape, it says that unable to connect to server(http://127.0.0.1:901 is the address that I am using.) I also tried https://127.0.0.1:901. I have also stopped and restarted inetd. In the syslog, I noticed that it lists

swat/tcp: Unknown service

(it is listing all the other services,like ftp/tcp,added service server /usr/lbin/ftpd). Is this what is causing my problem? my server does not hook up to the outside at all. Do I need to enable something else? I'd appreciate a shove in the right direction. Thanks!

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
14 REPLIES 14
Kirk Gardner
Advisor

Re: can't get swat to run to configure samba

What does the line for 'services' read in /etc/nsswitch.conf?
S.K. Chan
Honored Contributor

Re: can't get swat to run to configure samba

Does your /etc/inetd.conf looks like this ..
netbios-ssn stream tcp nowait root /opt/samba/bin/smbd smbd
netbios-ns dgram udp wait root /opt/samba/bin/nmbd nmbd
swat stream tcp nowait.400 root /opt/samba/bin/swat swat

Your /etc/services .. ?

netbios_ns 137/tcp # NetBIOS Name Service
netbios_ns 137/udp #
netbios_dgm 138/tcp # NetBIOS Datagram Service
netbios_dgm 138/udp #
netbios_ssn 139/tcp # NetBIOS Session Service
netbios_ssn 139/udp #
swat 901/tcp # SAMBA Web-based Admin Tool
Mark Vollmers
Esteemed Contributor

Re: can't get swat to run to configure samba

Kirk-

I don't have a services line in /etc/nsswtich.conf. it reads:

hosts: nis [NOTFOUND=return UNAVAIL=continue] files [NOTFOUND=return UNAVAIL=continue]

passwd: files [NOTFOUND=return UNAVAIL=continue]

group: files [NOTFOUND=return UNAVAIL=continue]


Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Mark Vollmers
Esteemed Contributor

Re: can't get swat to run to configure samba

here is my /etc/inetd.conf
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Mark Vollmers
Esteemed Contributor

Re: can't get swat to run to configure samba

Here is the /etc/services file
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Mark Vollmers
Esteemed Contributor

Re: can't get swat to run to configure samba

I see the netbios entries in the /etc/services, but not in inetd.conf. do these need to be added? what does this do?

mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
S.K. Chan
Honored Contributor

Re: can't get swat to run to configure samba

I'm sorry, I was looking at the wrong thing ..
actually when samba installs, it'll remove these in /etc/services..

netbios_ns 137/tcp # NetBIOS Name Service
netbios_ns 137/udp #
netbios_dgm 138/tcp # NetBIOS Datagram Service
netbios_dgm 138/udp #
netbios_ssn 139/tcp # NetBIOS Session Service
netbios_ssn 139/udp #

and added this these entry ..

netbios-ns 137/udp # for nmbd
netbios-ssn 139/tcp # for smbd

instead.

That way it is consistent with the "samba netbios" entries found in /etc/inetd.conf. I believe all these are added during install.


Kirk Gardner
Advisor

Re: can't get swat to run to configure samba


Are you using NIS?

# ypwhich
# ypcat -k services |grep swat
Kirk Gardner
Advisor

Re: can't get swat to run to configure samba

Is swat actually listening:

# netstat -an | grep 901
Mark Vollmers
Esteemed Contributor

Re: can't get swat to run to configure samba

Yes, I had setup NIS.

#ypwhich
munix

#ypcat -k services |grep swat
901/tcp swat 901/tcp #SAMBA web-based Admin Tool
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Mark Vollmers
Esteemed Contributor

Re: can't get swat to run to configure samba

There was no messages or anything when I typed in

#netstat -an |grep 901

I just got another prompt
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Kirk Gardner
Advisor
Solution

Re: can't get swat to run to configure samba

Then I suggest adding a line for services in /etc/nsswitch.conf and then re-starting inetd

# grep services /etc/nsswitch.conf
services: nis files
# inetd -c
# netstat -an | grep 901
Mark Vollmers
Esteemed Contributor

Re: can't get swat to run to configure samba

Thanks, Kirk! I can log in now.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Kirk Gardner
Advisor

Re: can't get swat to run to configure samba

:-)