From owner-freebsd-questions@FreeBSD.ORG  Fri Dec  5 10:06:07 2003
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CB7C316A4CE
	for <freebsd-questions@FreeBSD.ORG>;
	Fri,  5 Dec 2003 10:06:07 -0800 (PST)
Received: from out001.verizon.net (out001pub.verizon.net [206.46.170.140])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4C59D43FD7
	for <freebsd-questions@FreeBSD.ORG>;
	Fri,  5 Dec 2003 10:06:06 -0800 (PST)	(envelope-from mike@pcmedx.com)
Received: from duron.pcmedx.com ([4.46.22.189]) by out001.verizon.net
          (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP
          id <20031205180605.RQWO25266.out001.verizon.net@duron.pcmedx.com>;
          Fri, 5 Dec 2003 12:06:05 -0600
Received: from localhost (localhost [127.0.0.1])
	by duron.pcmedx.com (Postfix) with ESMTP
	id 07054AAB8; Fri,  5 Dec 2003 10:06:05 -0800 (PST)
Received: from mike (mike.pcmedx.com [192.168.240.244])
	by duron.pcmedx.com (Postfix) with SMTP
	id 44707A9E7; Fri,  5 Dec 2003 10:06:04 -0800 (PST)
Message-ID: <00f201c3bb5a$7a5075d0$f4f0a8c0@pcmedx.com>
From: "Mike Maltese" <mike@pcmedx.com>
To: <freebsd-questions@FreeBSD.ORG>
References: <web-191983903@mail01.infosat.net>
Date: Fri, 5 Dec 2003 10:06:16 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Virus-Scanned: by amavisd (http://www.amavis.org) and f-prot
	(http://www.f-prot.com) at pcmedx.com
X-Authentication-Info: Submitted using SMTP AUTH at out001.verizon.net from
	[4.46.22.189] at Fri, 5 Dec 2003 12:06:05 -0600
cc: IT Clown <linux@mailbox.co.za>
Subject: Re: mounting smb share
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Dec 2003 18:06:07 -0000

> Im having some trouble mounting an smb share.When i use the
> following command i can access the smb successfully:
> smbclient //server/share -U username.
>
> When i use the following command i get bad passwd: mount -t
> smbfs -O username=username //server/share /dir.

mount_smbfs should look more like this:

mount_smbfs //username@server/share /mountpoint

It will then prompt you for a password unless you've configured ~/.nsmbrc
(and/or /etc/nsmb.conf).