From owner-freebsd-questions Sat Mar 1 7: 6:48 2003 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 8885437B401 for ; Sat, 1 Mar 2003 07:06:45 -0800 (PST) Received: from mail.tiscali.it (mail-1.tiscali.it [195.130.225.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id 755AD43FBD for ; Sat, 1 Mar 2003 07:06:44 -0800 (PST) (envelope-from fcasadei@inwind.it) Received: from goku.kasby (217.133.209.42) by mail.tiscali.it (6.5.032) id 3E5CA78B001CA5F4 for freebsd-questions@freebsd.org; Sat, 1 Mar 2003 16:06:42 +0100 Received: (qmail 1044 invoked by uid 1000); 1 Mar 2003 15:06:22 -0000 Date: Sat, 1 Mar 2003 16:06:22 +0100 From: Francesco Casadei To: sergey dyshel Cc: freebsd-questions@freebsd.org Subject: Re: How to pass password to mount_smbfs Message-ID: <20030301150622.GA1001@goku.kasby> Mail-Followup-To: sergey dyshel , freebsd-questions@freebsd.org References: <20030301143027.49282.qmail@web41202.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline In-Reply-To: <20030301143027.49282.qmail@web41202.mail.yahoo.com> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 4.7-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 01, 2003 at 06:30:27AM -0800, sergey dyshel wrote: > Hi >=20 > On my Windows 95 machine I have one share with full > access (without passwords). When I try to mount this > share the mounter asks for password although the > password is empty. Pressing ENTER each time works but > it's really annoying to press enter each time I mount > this share. In addition I think it would be a problem > for automounter. >=20 > I use this command: =20 > mount_smbfs //HOME/C/PUB /mnt/smb/pub >=20 > How can I pass the password with it? >=20 > If I can't, is there a way to automate this? >=20 >=20 > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 > end of the original message Have you read mount_smbfs(8) manpage? It says: [...] -N Do not ask for a password. At run time, mount_smbfs reads the ~/.nsmbrc file for additional configuration parameters and a password. If no password is found, mount_smbfs prompts for it. [...] Furthermore in the 'FILES' section it states: [...] ~/.nsmbrc Keeps static parameters for connections and other informati= on. See ./examples/dot.nsmbrc for details. [...] Finally in the EXAMPLES section: [...] It is possible to use fstab(5) for smbfs mounts: //guest@samba/public /smb/public smbfs rw,noauto 0 0 [...] So the answer to your question is: man mount_smbfs less /usr/share/examples/smbfs/dot.nsmbrc man fstab Hope this helps. Francesco Casadei --=20 You can download my public key from http://digilander.libero.it/fcasadei/ or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...) Key fingerprint is: 1671 9A23 ACB4 520A E7EE 00B0 7EC3 375F 164E B17B --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+YMxufsM3XxZOsXsRAvidAKCa0weM9XP/EPWraGeWHvLsgHxhAgCdGsDK 3vA2sx+BAt0ZlDnMQGVN32A= =Ekcx -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message