From owner-freebsd-questions@FreeBSD.ORG Fri Apr 8 19:10:38 2005 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 142D616A4CE for ; Fri, 8 Apr 2005 19:10:38 +0000 (GMT) Received: from smtpgate.tsgincorporated.com (ns1.tsgincorporated.com [67.66.242.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDCF343D41 for ; Fri, 8 Apr 2005 19:10:37 +0000 (GMT) (envelope-from micheal@tsgincorporated.com) Received: from localhost (localhost.tsgincorporated.com [127.0.0.1]) by smtpgate.tsgincorporated.com (Postfix) with ESMTP id 6C8CF3CD70B; Fri, 8 Apr 2005 14:10:37 -0500 (CDT) Received: from smtpgate.tsgincorporated.com ([127.0.0.1])port 10024) with ESMTP id 14492-09; Fri, 8 Apr 2005 14:10:33 -0500 (CDT) Received: from mail.tsgincorporated.com (lanmail.tsgincorporated.com [67.66.242.29]) by smtpgate.tsgincorporated.com (Postfix) with ESMTP id 0A8823CD707; Fri, 8 Apr 2005 14:10:33 -0500 (CDT) Received: from micheal (micheal.tsgincorporated.com [67.66.242.77]) by mail.tsgincorporated.com (Postfix) with SMTP id 98401952878; Fri, 8 Apr 2005 14:10:32 -0500 (CDT) Message-ID: <004701c53c6e$eeea9fb0$4df24243@tsgincorporated.com> From: "Micheal Patterson" To: "Kirk Strauser" , References: <200504081252.19279.kirk@strauser.com> Date: Fri, 8 Apr 2005 14:12:37 -0500 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.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: amavisd-new at tsgincorporated.com Subject: Re: Automounting smbfs? 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: Fri, 08 Apr 2005 19:10:38 -0000 ----- Original Message ----- From: "Kirk Strauser" To: Sent: Friday, April 08, 2005 12:52 PM Subject: Automounting smbfs? The built-in amd automounter may work great for NFS, but I increasingly find myself mounting Windows shares and amd doesn't seem to support them. Any suggestions? -- Kirk Strauser Kirk, here's what I did to auto mount my pesky windows shared backup folder prior to having a seperate nfs mount to put them. Configure your share as noauto in /etc/fstab (example) ### SMBFS Mounts # #//username@server/share / smbfs noauto,rw,-N,-I= 0 0 Then, in the root crontab, add this: "@reboot //mbfs.sh" Then, in create a file named mbfs.sh and edit it as such: #!/bin/sh echo " " echo " " echo "mounting smbfs slices..." sleep 5 /sbin/mount /backups Please keep in mind, that this method will require the proper share auth info to be in /etc/nsmb.conf, so protect this file as it holds plain text passwords for your windows systems. Then on system restart, after everything else is accessible and running, cron will launch and remount those drives for you. Hope it helps. -- Micheal Patterson Senior Communications Systems Engineer 405-917-0600 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.