From owner-freebsd-questions@FreeBSD.ORG Mon Nov 10 11:14:55 2003 Return-Path: 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 284B916A4CF for ; Mon, 10 Nov 2003 11:14:55 -0800 (PST) Received: from aibo.runbox.com (aibo.runbox.com [193.71.199.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0BA643FE3 for ; Mon, 10 Nov 2003 11:14:53 -0800 (PST) (envelope-from klimenta@futurebit.com) Received: from [10.9.9.11] (helo=fifi.runbox.com) by lufsen.runbox.com with esmtp (Exim 4.24) id 1AJHUy-00026a-3B for freebsd-questions@freebsd.org; Mon, 10 Nov 2003 20:14:52 +0100 Received: from [12.33.76.83] (helo=srce) (Authenticated Sender=klimenta@runbox.com) by fifi.runbox.com with asmtp (Exim 4.24) id 1AJHUZ-0006lk-QK for freebsd-questions@freebsd.org; Mon, 10 Nov 2003 20:14:28 +0100 Message-ID: <000e01c3a7be$f1419de0$ca0112ac@vinyl.tkvbp.com> From: "Kliment Andreev" To: References: <200311101735.hAAEsKSk009294@nic.fnni.com> Date: Mon, 10 Nov 2003 13:14:53 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" 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-Sender: 202020 Subject: Re: Mount SMB share on bootup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2003 19:14:55 -0000 > point is password protected (on the XP side) so I am prompted for a > password. How can I automate that? Or should I create the share without a > password? I am not too worried about internal security so the share could > have no password and that would be fine. Create a script called whatever.sh, chmod +x 755 whatever.sh and put that script in a /usr/local/etc/rc.d. Put the following lines in that script #!/bin/sh smbmount username=user password=pass and the rest of the parametars that you are normaly using when mounting smb partition. Mind that if your startup script for samba is samba.sh your mounting script must start with a letter after the letter s otherwise you would mounting a samba share without smb daemon started.