On Thu Apr 13 2000 at 13:28, Hong F Du wrote:

> Things are still not work out for me. Here is what I did:
> 1) Install Samba server from redhat cd.
> 2) Add 'swat 901/tcp' to /etc/services.
> 3) Add ' swat  stream tcp nowait.400 root /usr/sbin/swat swat' to /etc/inetd.conf.
> 4) Use command  'ntsysv --level 35' to enable smb at boot time.

Yeech, no.  That's for samba, but swat is run via inetd.  Also
this command is far better:

        chkconfig --level 345 smb on

> 5) Reboot and login as root.

There was absolutely no need to reboot.  There is hardly ever any
need to reboot a linux box - this is NOT microslop land!

To restart samba and inetd do this:

        /etc/rc.d/init.d/smb restart
        /etc/rc.d/init.d/inet restart

(or use the new /sbin/service command instead).  Or just send
them a HUP signal with the kill/killall command.

> 6) Point Netscape to 'http://localhost:901'.
> 
> The result was still that the browser went to netscape's site
> and start search there and returned with 'cann't find
> localhast901'.

Do you *really* understand what is going on here?

Doing this:

        netscape http://localhost:901

is telling netscape to connect to a web server listening to port 901
on the LOCAL HOST (ie, your own workstation).  No need to go
anywhere else to find it.

If you don't understand this, then you are out of your depth and
you have a lot of basic networking concepts to come to grips
with. (like the concept of client-server)  (That's ok though,
what's great about linux is that it teaches you about things like
this).

> I checked swat's man page. It mentions something about after
> compiling SWAT we need to run "make install" to install. I am
> confused here. Is swat installed already after installing
> samba?

Yes.  It comes with samba is in /usr/sbin/swat by default.

> What did I do wrong?
> Is there a way I can test if the inetd is listening?

        netstat -plutn

> Thank you very much.
> 
> feng
> 
> Tony Nugent wrote:
> 
> > On Wed Apr 12 2000 at 17:02, Hong F Du wrote:
> >
> > > Thank you the help. I did as what you said. When I point the netscape to
> > > http://localhost:901, the browser automatcially went to the web site of netscape
> > > and started to search there. And of cause it couldn't find what I need.
> > > How do I fix it?
> >
> > It sounds like one step was missed - you didn't -HUP the inetd daemon
> > so it wasn't listening to port 901.
> >
> > > Is there a way to disable this default search engin?
> >
> > No, if netscape finds nothing at a url (or gets an network error
> > message), it goes off to a search engine.  ie does the same.
> >
> > > Thank you.
> > >
> > > feng
> > >
> > > Andy Rosen wrote:
> > >
> > > > On April 7, Hong F Du ([EMAIL PROTECTED]) mumbled:
> > > > > I downloaded samba already. But I couldn't find any HOWTO on how to
> > > > > install, setup or configure samba under linux. Can anyone tell me how or
> > > > > point me to a web. Thank you.
> > > >
> > > > Since you're running RedHat 6.1, you can just install the Samba RPMs from
> > > > the CD (if they weren't installed when you installed RedHat).
> > > >
> > > > SWAT, the Samba Web Administration Tool, is very good.  It's one of the
> > > > only graphical or web based configurators I prefer over vi.
> > > >
> > > > Make sure you have a line in /etc/inetd.conf like:
> > > >
> > > > swat      stream  tcp     nowait.400      root /usr/sbin/swat swat
> > > >
> > > > Restart inetd if necessary (killall -HUP inetd).  Then point your
> > > > favorite web browswer at http://localhost:901 and login as root.
> > > >
> > > > You can start Samba with "/etc/rc.d/init.d/smb start".  Running tksysv
> > > > (the run-level editor) will let you start it each time you boot.

Cheers
Tony
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
  Tony Nugent <[EMAIL PROTECTED]>    Systems Administrator, RHCE
  GrowZone OnLine       (a project of) GrowZone Development Network
  POBox 475 Toowoomba Oueensland Australia 4350    Ph: 07 4637 8322
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-

Reply via email to