<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to get Swat to listen on port 901 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658437#M590880</link>
    <description>I am puzzling over how to configure my system so that I can use swat to configure Samba.&lt;BR /&gt;&lt;BR /&gt;I have a small isolated network.  5 - HP-UX 11.0 workstations, and a number of  Windows pc's.  The network has no access to the Internet.  I have one workstation set up as a NIS master, 1 slave, and the rest as clients. The network has no DNS server. &lt;BR /&gt;&lt;BR /&gt;I installed Samba 2.09 which I got pre-compiled from depot B8725AA_11.00.depot.  Everything installed fine.&lt;BR /&gt;&lt;BR /&gt;I have an entry in /etc/services:  &lt;BR /&gt;swat    901/tcp   # SAMBA Web-based Admin Tool&lt;BR /&gt;&lt;BR /&gt;and another one in /etc/inetd.conf&lt;BR /&gt;swat stream tcp nowait.400 root /opt/samba/bin/swat swat&lt;BR /&gt;&lt;BR /&gt;I started the Samba daemons (/opt/samba/bin/startsmb).  I can share a directory on my unix box, and map the drive on my Windows machines just fine.&lt;BR /&gt;&lt;BR /&gt;When I start up Netscape Communicator (ver. 4.75), and put in http://localhost:901, I get the following error message: &lt;BR /&gt;Netscape is unable to locate the server localhost:901. Please check the server name and try again.&lt;BR /&gt;&lt;BR /&gt;If I try using 127.0.0.1:901, I get:&lt;BR /&gt;A network error has occurred: &lt;BR /&gt;     unable to connect to server&lt;BR /&gt;The server may be down or unreachable.&lt;BR /&gt;Try connecting again later.&lt;BR /&gt;&lt;BR /&gt;When I tried netstat -an | grep 901, it returned nothing.  I restarted inetd, and even reboot the workstation, but I can not get it to listen on port 901.  I have check the hosts file, and everything looks fine.  I can successfully ping 127.0.0.1, the workstation name, and even the other workstations that only the NIS master has in its hosts file.  I am wondering if my system need access to a DNS server to work with swat?&lt;BR /&gt;&lt;BR /&gt;The syslog.log has a entry:&lt;BR /&gt;test inetd[812]: swat/tcp: Unknown service&lt;BR /&gt;I have confirmed that swat does exist at /opt/samba/bin/swat, has permissions -rwxr-xr-x&lt;BR /&gt;&lt;BR /&gt;I am not sure what I should check next.  Can anyone point me in the right direction?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Jane</description>
    <pubDate>Mon, 04 Feb 2002 19:57:28 GMT</pubDate>
    <dc:creator>Jane Lecian</dc:creator>
    <dc:date>2002-02-04T19:57:28Z</dc:date>
    <item>
      <title>Unable to get Swat to listen on port 901</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658437#M590880</link>
      <description>I am puzzling over how to configure my system so that I can use swat to configure Samba.&lt;BR /&gt;&lt;BR /&gt;I have a small isolated network.  5 - HP-UX 11.0 workstations, and a number of  Windows pc's.  The network has no access to the Internet.  I have one workstation set up as a NIS master, 1 slave, and the rest as clients. The network has no DNS server. &lt;BR /&gt;&lt;BR /&gt;I installed Samba 2.09 which I got pre-compiled from depot B8725AA_11.00.depot.  Everything installed fine.&lt;BR /&gt;&lt;BR /&gt;I have an entry in /etc/services:  &lt;BR /&gt;swat    901/tcp   # SAMBA Web-based Admin Tool&lt;BR /&gt;&lt;BR /&gt;and another one in /etc/inetd.conf&lt;BR /&gt;swat stream tcp nowait.400 root /opt/samba/bin/swat swat&lt;BR /&gt;&lt;BR /&gt;I started the Samba daemons (/opt/samba/bin/startsmb).  I can share a directory on my unix box, and map the drive on my Windows machines just fine.&lt;BR /&gt;&lt;BR /&gt;When I start up Netscape Communicator (ver. 4.75), and put in http://localhost:901, I get the following error message: &lt;BR /&gt;Netscape is unable to locate the server localhost:901. Please check the server name and try again.&lt;BR /&gt;&lt;BR /&gt;If I try using 127.0.0.1:901, I get:&lt;BR /&gt;A network error has occurred: &lt;BR /&gt;     unable to connect to server&lt;BR /&gt;The server may be down or unreachable.&lt;BR /&gt;Try connecting again later.&lt;BR /&gt;&lt;BR /&gt;When I tried netstat -an | grep 901, it returned nothing.  I restarted inetd, and even reboot the workstation, but I can not get it to listen on port 901.  I have check the hosts file, and everything looks fine.  I can successfully ping 127.0.0.1, the workstation name, and even the other workstations that only the NIS master has in its hosts file.  I am wondering if my system need access to a DNS server to work with swat?&lt;BR /&gt;&lt;BR /&gt;The syslog.log has a entry:&lt;BR /&gt;test inetd[812]: swat/tcp: Unknown service&lt;BR /&gt;I have confirmed that swat does exist at /opt/samba/bin/swat, has permissions -rwxr-xr-x&lt;BR /&gt;&lt;BR /&gt;I am not sure what I should check next.  Can anyone point me in the right direction?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Jane</description>
      <pubDate>Mon, 04 Feb 2002 19:57:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658437#M590880</guid>
      <dc:creator>Jane Lecian</dc:creator>
      <dc:date>2002-02-04T19:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get Swat to listen on port 901</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658438#M590881</link>
      <description>Try seeing the status of your software&lt;BR /&gt;&lt;BR /&gt;swlist -l fileset -a state | grep -i CIFS&lt;BR /&gt;&lt;BR /&gt;make sure that it is configured&lt;BR /&gt;&lt;BR /&gt;Then see if you have a smb.conf in the right place.&lt;BR /&gt;&lt;BR /&gt;That version wants it in /etc/opt/samba/smb.conf&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C</description>
      <pubDate>Mon, 04 Feb 2002 20:07:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658438#M590881</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-02-04T20:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get Swat to listen on port 901</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658439#M590882</link>
      <description>Craig,&lt;BR /&gt;&lt;BR /&gt;Thanks for the suggestions. &lt;BR /&gt;&lt;BR /&gt;It looks like it is configured to me:&lt;BR /&gt;&lt;BR /&gt;# CIFS-Development  &lt;BR /&gt;CIFS-Development.CIFS-PRG      configured     &lt;BR /&gt;# CIFS-Server  &lt;BR /&gt;CIFS-Server.CIFS-ADMIN         configured     &lt;BR /&gt;CIFS-Server.CIFS-DOC           configured     &lt;BR /&gt;CIFS-Server.CIFS-MAN           configured     &lt;BR /&gt;CIFS-Server.CIFS-RUN           configured     &lt;BR /&gt;CIFS-Server.CIFS-UTIL          configured  &lt;BR /&gt;&lt;BR /&gt;Also the conf. file exist, and its permissions are:&lt;BR /&gt;&lt;BR /&gt;-rw-r--r--   1 root       users         2174 Jan 29 15:20 /etc/opt/samba/smb.conf&lt;BR /&gt;&lt;BR /&gt;Maybe I should try a different version of Samba?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Jane</description>
      <pubDate>Mon, 04 Feb 2002 20:34:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658439#M590882</guid>
      <dc:creator>Jane Lecian</dc:creator>
      <dc:date>2002-02-04T20:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get Swat to listen on port 901</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658440#M590883</link>
      <description>Let's not give up yet.&lt;BR /&gt;&lt;BR /&gt;The permissions on my smb.conf are 660 &lt;BR /&gt;&lt;BR /&gt;I just installed this version a few weeks ago on a server so I am not worried about the version.&lt;BR /&gt;&lt;BR /&gt;What happens when you run  /opt/samba/bin/smbstatus and /opt/samba/bin/testparm&lt;BR /&gt;&lt;BR /&gt;Hopefully that may point us down the right direction.&lt;BR /&gt;&lt;BR /&gt;C&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2002 21:08:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658440#M590883</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-02-04T21:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get Swat to listen on port 901</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658441#M590884</link>
      <description>I changed the permissions on smb.conf to match yours, and restarted inetd and samba.  It didn't help.&lt;BR /&gt;&lt;BR /&gt;Here is the results of smbstatus:&lt;BR /&gt;Samba version 2.0.9&lt;BR /&gt;Service      uid      gid      pid     machine&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;tmp          jel      users    15801   user19    (10.1.0.19) Mon Feb  4 12:47:41 2002&lt;BR /&gt;&lt;BR /&gt;No locked files&lt;BR /&gt;&lt;BR /&gt;Share mode memory usage (bytes):&lt;BR /&gt;   1048464(99%) free + 56(0%) used + 56(0%) overhead = 1048576(100%) total&lt;BR /&gt;&lt;BR /&gt;I've attached the results of testparm.  &lt;BR /&gt;&lt;BR /&gt;Thanks for your help,&lt;BR /&gt;&lt;BR /&gt;Jane</description>
      <pubDate>Tue, 05 Feb 2002 12:55:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658441#M590884</guid>
      <dc:creator>Jane Lecian</dc:creator>
      <dc:date>2002-02-05T12:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get Swat to listen on port 901</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658442#M590885</link>
      <description>One thing I think you may need to change is to have NIS homedir = No changed to NIS homedir = Yes in you smb.conf. This probably is not the problem with swat. Also there is a homedir map option that can be used with NIS.&lt;BR /&gt;&lt;BR /&gt;On the swat problem, it may be a resolution issue, not sure. There is a name resolve order = hosts lmhosts bcast wins option for global that may help since your are not using dns. It could be having trouble with that, I don't being as I haven't used samba in a NIS environment. &lt;BR /&gt;&lt;BR /&gt;Let me know,&lt;BR /&gt;C&lt;BR /&gt;&lt;BR /&gt;One thing I may suggest is to get the O'Reily book on Samba, there is a ton of good info in there.</description>
      <pubDate>Tue, 05 Feb 2002 14:54:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658442#M590885</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-02-05T14:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get Swat to listen on port 901</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658443#M590886</link>
      <description>I tried the options you suggested, but it is still not working.&lt;BR /&gt;&lt;BR /&gt;I downloaded the O'Reilly book from their web site.  I'm starting to look through it.&lt;BR /&gt;&lt;BR /&gt;I will let you know if I figure this out.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;BR /&gt;&lt;BR /&gt;Jane</description>
      <pubDate>Tue, 05 Feb 2002 17:54:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658443#M590886</guid>
      <dc:creator>Jane Lecian</dc:creator>
      <dc:date>2002-02-05T17:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get Swat to listen on port 901</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658444#M590887</link>
      <description>I am willing to bet that your inetd.conf is not correct..it should be&lt;BR /&gt;swat stream tcp nowait root /path/to/swat swat&lt;BR /&gt;&lt;BR /&gt;then for convienence, add this to /etc/services&lt;BR /&gt;swat 901/tcp #for samba&lt;BR /&gt;&lt;BR /&gt;inetd -c&lt;BR /&gt;then telnet to port 901 and see if the port is open.</description>
      <pubDate>Tue, 05 Feb 2002 19:33:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658444#M590887</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2002-02-05T19:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get Swat to listen on port 901</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658445#M590888</link>
      <description>Well, I figured out the problem.&lt;BR /&gt;&lt;BR /&gt;It had to do with NIS.  My machine is an NIS client.  The nsswitch.conf was set to search for services in the order of NIS, and "if information is not found to stop searching" (to quote SAM).  It would only go to /etc/services if the NIS was not configured.   It never got to the "swat 901/tcp" line in my local /etc/services.&lt;BR /&gt;&lt;BR /&gt;Once I put swat 901/tcp in the /etc/services file on the NIS master, swat worked fine.  I also tried it by changing the search order in my nsswitch.conf to files, and the NIS.  That worked fine also.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help,&lt;BR /&gt;&lt;BR /&gt;Jane</description>
      <pubDate>Wed, 06 Feb 2002 18:40:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-get-swat-to-listen-on-port-901/m-p/2658445#M590888</guid>
      <dc:creator>Jane Lecian</dc:creator>
      <dc:date>2002-02-06T18:40:22Z</dc:date>
    </item>
  </channel>
</rss>

