From owner-freebsd-questions Tue Oct 14 20:43:01 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA11376 for questions-outgoing; Tue, 14 Oct 1997 20:43:01 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA11364 for ; Tue, 14 Oct 1997 20:42:57 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id NAA06722; Wed, 15 Oct 1997 13:12:53 +0930 (CST) Message-ID: <19971015131253.07027@lemis.com> Date: Wed, 15 Oct 1997 13:12:53 +0930 From: Greg Lehey To: FreeBSD Questions Subject: Samba: how do I specify service names? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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