Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SAMBA config help!

14 views
Skip to first unread message

Michael Anderson

unread,
Feb 25, 1997, 3:00:00 AM2/25/97
to

Hi everyone,

On Feb 10 I downloaded a copy of samba50 from 3k. I got the client working,
this is great. Now I need the server to work.

Problems:

Unable to see the default test shares from any WFW/PC. I have learned that I
need to get nmbd running. To get nmbd running I need to get Inetd running.

So, I downloaded inetd, services and inetd.conf from jazz today. I am not
sure how to config inetd, nmbd, or smbd. I have hacked an hacked at it, now
I am asking for help!

What do I need to do to get inetd running? Maybe somebody can send me a
sample inetd.conf with the nmbd stuff in it ;-)

What do I need to do to get nmbd running?

This hp3000 is a new addition to our shop, nothing is running on it except
development and test stuff. It was purchased to be a Fileserver/Internet
server. I am running MPE/iX 5.0 on it, should I upgrade to 5.5?

One last question, Does anybody have a quick summary of the differences
between Samba and Resource Sharing/iX? Or, can I purchase something that does
the same thing that Samba does?


_______________________________________________
Michael Anderson
HP3000 Systems Programmer/Analyst

Lars Appel

unread,
Feb 26, 1997, 3:00:00 AM2/26/97
to

Michael,

for the server part you mainly need the SMBD program (can be run
under INETD or even simpler within a server job). This should help
getting NET VIEW and NET USE work on the PC side.

You need NMBD to support "browsing" as far as I understand. I have
not much experience with that as I focused on the SMBD part so far.
I've heard that several people have used it under INETD but do not
know if someone has tried the INETD port from Jazz on 5.0 so far.

Getting the SMBD job running should give you the main server part.

Regards, Lars.

Michael Anderson

unread,
Feb 26, 1997, 3:00:00 AM2/26/97
to


Lars,

I got the SMBD job running but NET VIEW from the PC side still doesn't see
the SAMBA server.

Any hints?

TIA,
Michael "I can't wait to get this going!!!!" Anderson

Michael L Gueterman

unread,
Feb 26, 1997, 3:00:00 AM2/26/97
to

Michael,

You should be able to do a 'NET VIEW \\sambaservername' to see
the shares which are browseable on the 3000. This is a function of
SMBD. If you do a simple 'NET VIEW' without a server name specified,
then that is asking each server in your workgroup to respond saying
they are available for browsing. This is a function of NMBD. Once
you can get your NMBD problem solved, you should see your 3000
should up there too.

Regards,
Michael
--

----------
From: Michael Anderson[SMTP:Michael....@TIWTOOLS.COM]
Sent: Wednesday, February 26, 1997 5:25 PM
To: HP30...@RAVEN.UTC.EDU
Subject: Re: [HP3000-L] SAMBA config help!

Michael Anderson

unread,
Feb 26, 1997, 3:00:00 AM2/26/97
to

Michael L Gueterman wrote:
>
> Michael,
>
> You should be able to do a 'NET VIEW \\sambaservername' to see
> the shares which are browseable on the 3000. This is a function of
> SMBD. If you do a simple 'NET VIEW' without a server name specified,
> then that is asking each server in your workgroup to respond saying
> they are available for browsing. This is a function of NMBD. Once
> you can get your NMBD problem solved, you should see your 3000
> should up there too.
>


Michael,

Thanks for the tip, I DIDN'T KNOW THAT :-)

So, into my DOS window I went and this is what happened:

----------------------------------------------------
Microsoft(R) MS-DOS(R) Version 6.22
(C)Copyright Microsoft Corp 1981-1994.

C:\MSOFFICE>net view \\hp928

Error 53: The computer name specified in the network path cannot be located.


C:\MSOFFICE>exit

------------------------------------------------------

I don't know what's up here. I went over to the HP928 to verify that the smbd
server job is running, it is. Just for grins I did a "LISTFILE
/SYS/SAMBA/@,2" the SMBD file had an "*" next to it meanning it was being
accessed. Then "LISTFILE /SYS/SAMBA/lib/@,2" and I don't see any "*" next to
the smb.conf file. Maybe because it's a HFS file, or maybe because it's not
being accessed, I dunno.

Anyway I'm going to review all the SAMBA doc's maybe I've missed something.
Any hints will be jumped on ASAP! Calling it a night for now.

Thanks again,
Michael.

Lars Appel

unread,
Feb 27, 1997, 3:00:00 AM2/27/97
to

Michael,

does the SMBD program receive a request from the PC side?
You might try to check this by increasing the debug level
in smb.conf and trying another NET VIEW \\servername and
look at the messages in /usr/local/samba/var/log.smb then.

By the way, did you teach your PC the servername to IP
translation? It helped me to either use the ADDNAME command
for temporary testing or add a line to the LMHOSTS file
under \LANMAN.DOS\ETC.

Lars (not a PC guru)

Neil Harvey

unread,
Feb 27, 1997, 3:00:00 AM2/27/97
to

By default, NET VIEW (at least on Win95) will show all machines on your
own workgroup/domain.
You can look at other worgroup/domains on you network by specifying :--

NET VIEW /WORKGROUP:<workgroup/domain name>

Try NET /? | MORE
Then NET VIEW /? | MORE

I love this networking stuff (although I dont pretend to understand it
all), but only when it works :)

Regards

Neil

Chris Breemer

unread,
Feb 27, 1997, 3:00:00 AM2/27/97
to

Micheal Gueterman wrote:
> >
> > You should be able to do a 'NET VIEW \\sambaservername' to see
> > the shares which are browseable on the 3000. This is a function of
> > SMBD. If you do a simple 'NET VIEW' without a server name specified,
> > then that is asking each server in your workgroup to respond saying
> > they are available for browsing. This is a function of NMBD. Once
> > you can get your NMBD problem solved, you should see your 3000
> > should up there too.
> >
Micheal Anderson replied:

> So, into my DOS window I went and this is what happened:
>
> ----------------------------------------------------
> Microsoft(R) MS-DOS(R) Version 6.22
> (C)Copyright Microsoft Corp 1981-1994.
>
> C:\MSOFFICE>net view \\hp928
>
> Error 53: The computer name specified in the network path cannot be located.
>

This was probably under Win95?
What I get is

Microsoft(R) Windows NT(TM)
(C) Copyright 1985-1996 Microsoft Corp.

C:\net view felix
System error 86 has occurred.

The specified network password is not correct.

This also happens if I use the IP adress instead of the node name.
Note the target is HP-UX but I have the same problems finding the HP3000; they
both run samba smbd and nmbd. Not ethat drive maaping to this host works fine...

I'm confused !?

Chris Breemer
Compuware Europe B.V.

Neil Harvey

unread,
Feb 27, 1997, 3:00:00 AM2/27/97
to

Chris

You must use the Universal Naming Convention \\'s


C:\>net view \\atlantic
Shared resources at \\ATLANTIC

Sharename Type Comment
------------------------------------------------------------------------
-------
guest1 Disk serves /tmp (readonly) for guest
guest2 Disk serves /tmp (writable) for guest
htmldocs Disk HTML documents
root Disk Entire machine
The command was completed successfully.

C:\>net view atlantic
The syntax is incorrect.
For help, type NET VIEW /? at the command prompt.

C:\>

Regards

Neil

> -----Original Message-----
> From: HP-3000 Systems Discussion [SMTP:HP30...@RAVEN.UTC.EDU] On
> Behalf Of Chris Breemer
> Sent: 27 February 1997 11:11
> To: HP30...@RAVEN.UTC.EDU
> Subject: Re: SAMBA config help!
>

Chris Breemer

unread,
Feb 27, 1997, 3:00:00 AM2/27/97
to

Hi Neil,

>
> Chris
>
> You must use the Universal Naming Convention \\'s
>
>
> C:\>net view \\atlantic

Aw shucks... I did that, but forgot to type them in the mail message.
It still does not work, backslashes or not.

Thanks !

Chris

Michael Anderson

unread,
Feb 27, 1997, 3:00:00 AM2/27/97
to

Lars,

Everything is running now ( smbd, nmbd ) under inetd.

nmbd is working. :-)


smbd is not, here is the tail end of the log file. Maybe you can give me so
more hints.

------------------------
Unsupported Samba/iX 0.5 by lap...@grc.hp.com 1/97
Warning - chroot(/) not done
02/27/97 11:19:30 changed root to /
priming nmbd
Get_Hostbyname: Unknown host. localhost
sending a packet of len 1 to (127.0.0.1) on port 137 of type DGRAM
02/27/97 11:20:01 Transaction 0 of length 76
netbios connect: name1=HP928 name2=HP928
02/27/97 11:20:01 init msg_type=0x81 msg_flags=0x0
Error writing 4 bytes to client. -1. Exiting
Processing section "[guest1]"
doing parameter comment = serves /tmp (readonly) for guest
doing parameter path = /tmp
doing parameter guest ok = yes
doing parameter write ok = no
Processing section "[guest2]"
doing parameter comment = serves /tmp (writable) for guest
doing parameter path = /tmp
doing parameter guest ok = yes
doing parameter write ok = yes
pm_process() returned Yes
lp_servicenumber: couldn't find homes
lp_servicenumber: couldn't find printers
lp_servicenumber: couldn't find printers
adding IPC service
Added interface ip=192.9.200.202 bcast=192.9.200.255 nmask=255.255.255.0
02/27/97 11:24:08 loaded services
Unsupported Samba/iX 0.5 by lap...@grc.hp.com 1/97
Warning - chroot(/) not done
02/27/97 11:24:08 changed root to /
priming nmbd
Get_Hostbyname: Unknown host. localhost
sending a packet of len 1 to (127.0.0.1) on port 137 of type DGRAM
02/27/97 11:25:38 Closing idle connection
Closing connections
02/27/97 11:25:39 Server exit (normal exit)
Processing section "[guest1]"
doing parameter comment = serves /tmp (readonly) for guest
doing parameter path = /tmp
doing parameter guest ok = yes
doing parameter write ok = no
Processing section "[guest2]"
doing parameter comment = serves /tmp (writable) for guest
doing parameter path = /tmp
doing parameter guest ok = yes
doing parameter write ok = yes
pm_process() returned Yes
lp_servicenumber: couldn't find homes
lp_servicenumber: couldn't find printers
lp_servicenumber: couldn't find printers
adding IPC service
Added interface ip=192.9.200.202 bcast=192.9.200.255 nmask=255.255.255.0
02/27/97 11:27:07 loaded services
Unsupported Samba/iX 0.5 by lap...@grc.hp.com 1/97
Warning - chroot(/) not done
02/27/97 11:27:07 changed root to /
priming nmbd
Get_Hostbyname: Unknown host. localhost
sending a packet of len 1 to (127.0.0.1) on port 137 of type DGRAM
got message type 0x81 of len 0x48
02/27/97 11:28:25 Transaction 0 of length 76
netbios connect: name1=HP928 name2=HP928
02/27/97 11:28:25 init msg_type=0x81 msg_flags=0x0
write_socket(9,4)
write_socket(9,4) wrote -1
Error writing 4 bytes to client. -1. Exiting

--------------------------------------------------------------

All the help from everybody is so very much appreciated. And a very special
thanks to Lars.

TIA,
Michael Anderson.

Doug Werth

unread,
Feb 27, 1997, 3:00:00 AM2/27/97
to

Michael,

We ran into the exact same thing here. Turn out you just need to make
sure you have a hosts file set up correctly (HOSTS.NET.SYS) with an entry
for loopback (127.0.0.1).

Doug Werth
Beechglen Development Inc.
do...@beechglen.com
513.922.0509

----------
> From: Michael Anderson <Michael....@TIWTOOLS.COM>


> To: HP30...@RAVEN.UTC.EDU
> Subject: Re: SAMBA config help!

> Date: Thursday, February 27, 1997 3:03 PM

Michael D. Hensley

unread,
Feb 27, 1997, 3:00:00 AM2/27/97
to

Michael Anderson posted the following error from his log.smb file:

> Error writing 4 bytes to client. -1. Exiting

Doug Werth responded:


> We ran into the exact same thing here. Turn out you just need to make
> sure you have a hosts file set up correctly (HOSTS.NET.SYS) with an entry
> for loopback (127.0.0.1).

I get the same exact error message. My hosts file does include the
following entry:

127.0.0.1 loopback localhost LOOPBACK LOCALHOST

so I don't think that's the problem. Sigh.

LEOPARD (the HP3000) shows up in my (Win95) Network Neighborhood, but
double-clicking on it results in "\\Leopard is not accessible. The
specified computer did not receive your request. Try again later."
on the PC.

"net view \\leopard" (from a DOS box) results in:

Error 51: The specified computer is not receiving requests. Make
sure you are specifying the computer name correctly, or try again
later when the remote computer is available.

More sighs. Time to upgrade to NT?
---
Michael D. Hensley |
Software Development Manager | mich...@lund.com
Lund Performance Solutions | http://www.lund.com

Michael Anderson

unread,
Feb 27, 1997, 3:00:00 AM2/27/97
to

Michael D. Hensley wrote:
>
> Michael Anderson posted the following error from his log.smb file:
> > Error writing 4 bytes to client. -1. Exiting
>
> Doug Werth responded:
> > We ran into the exact same thing here. Turn out you just need to make
> > sure you have a hosts file set up correctly (HOSTS.NET.SYS) with an entry
> > for loopback (127.0.0.1).
>
> I get the same exact error message. My hosts file does include the
> following entry:
>
> 127.0.0.1 loopback localhost LOOPBACK LOCALHOST
>
> so I don't think that's the problem. Sigh.

Well I to have the loopback localhost entry in my host file. I added it after
reading Doug's original message on the matter. Samba continues to fail
exactly as Michael Hensley explained. I get the same error "51" from the DOS
window.

So what are we doing different than Doug.

My host file was setup in the shell using VI as /etc/hosts. Then I set
symbolic link as ":NEWLINK HOSTS.NET.SYS, /etc/hosts" How about you?

My services file is setup the same way as /etc/services. With a symbolic link
as ":NEWLINK SERVICES.NET.SYS, /etc/services" How about you?

Maybe Doug can post his host file so we can compare the differences.

What OS are all the samba users on, I'm running 5.0?

Something must be different. I don't think NT is the answer because I have
tried it on WFW3.11 and NT3.51 and also NT4.0 none of them are getting a
response back from Samba.

Any and all input will be appreciated.

TIA,
Michael "specified computer is not receiving requests" Anderson

Doug Werth

unread,
Feb 28, 1997, 3:00:00 AM2/28/97
to

Michael Anderson wrote:
>
> Maybe Doug can post his host file so we can compare the differences.
>
> What OS are all the samba users on, I'm running 5.0?

Coming from the "I probably let my fingers go faster than my brain"
department I may have to hedge a bit on my original reply. The problem
with the hosts file should solve the error you were getting in your log
that said:

>Get_Hostbyname: Unknown host. localhost
>sending a packet of len 1 to (127.0.0.1) on port 137 of type DGRAM

I think we were getting a "Network is busy" message or something along
those lines on the client. Your error message on the client is much
different.

All I did was copy the HOSTSAMP.NET.SYS file to HOSTS.NET.SYS because id
did not yet exist. The error went away and we could start browsing the
machine.

OS is 5.5
Client is Win95

Interestingly enough we have two different Win95 machines that we tested
on. One works very well in bringing files off of the HP 3000 and viewing
them. On the other, I try to open a text file with Wordpad/MSWrite (or
anything else for that matter) and after it loads about 60% of the file
the whole machine locks up and needs to be rebooted.

I just love PCs! :(

0 new messages