Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 1997 13:12:53 +0930
From:      Greg Lehey <grog@lemis.com>
To:        FreeBSD Questions <questions@FreeBSD.org>
Subject:   Samba: how do I specify service names?
Message-ID:  <19971015131253.07027@lemis.com>

next in thread | raw e-mail | index | archive | help
I'm currently writing a chapter about Samba for the next edition of
"The Complete FreeBSD", and I need help.  I don't use Microsoft, so I
can't even test this stuff properly.  Currently I have installed smbd,
configured inetd to start smbd and nmbd, and set up a configuration
file.  I'm trying to test with smbclient.

I have the following entry in smb.conf:

+   [grog]
+     path = /home/grog
+     printable = true
+     read only = true
+     public = true

This is what happens when I try to access it with smbclient:

+   $ smbclient \\freebie\\\\grog
+   Added interface ip=192.109.197.137 bcast=192.109.197.255 nmask=255.255.255.0
+   Server time is Wed Oct 15 13:09:55 1997
+   Timezone is UTC+9.5
+   Password: 
+   Domain=[WORKGROUP] OS=[Unix] Server=[Samba 1.9.16p11]
+   
+   Warning: Your service name doesn't start with \\. This is probably incorrect.
+   Perhaps try replacing each \ with \\ on the command line?

Why is this message coming?  I have the correct number of \\\\s for
the shell.  I've tried changing the number, which just confuses it all
the more.
   
+   first SMBtconX failed, trying again. ERRSRV - ERRinvnetname (Invalid network name in tree connect.)
+   SMBtconX failed. ERRSRV - ERRinvnetname (Invalid network name in tree connect.)
+   Perhaps you are using the wrong sharename, username or password?
+   Some servers insist that these be in uppercase

In the log file, I get:

10/15/97 13:09:57 couldn't find service /grog

Where is this / coming from?  I didn't mention a forward slash.

I've played around with this.  If I change the service name to /grog,
things work just fine.  But this looks to me as if somebody is
inserting a /, and I don't know how to get rid of it.  Is this a bug,
a feature, or incorrect usage on my part?

Greg




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971015131253.07027>