From owner-freebsd-questions@FreeBSD.ORG Fri Mar 24 11:42:27 2006 Return-Path: X-Original-To: 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 E99F416A420 for ; Fri, 24 Mar 2006 11:42:27 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from asmtp-out1.blueyonder.co.uk (asmtp-out1.blueyonder.co.uk [195.188.213.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B98B43D49 for ; Fri, 24 Mar 2006 11:42:26 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [80.192.2.16] (helo=[192.168.0.2]) by asmtp-out1.blueyonder.co.uk with esmtp (Exim 4.52) id 1FMkgT-0001EK-Nz; Fri, 24 Mar 2006 11:42:25 +0000 Message-ID: <4423DB21.6010803@dial.pipex.com> Date: Fri, 24 Mar 2006 11:42:25 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.12) Gecko/20060305 X-Accept-Language: en MIME-Version: 1.0 To: Steel City Phantom References: <44217701.3040407@yahoo.com> <44d5gd0xha.fsf@be-well.ilk.org> <444q1p0wtc.fsf@be-well.ilk.org> <442345C3.6040307@yahoo.com> In-Reply-To: <442345C3.6040307@yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd general questions Subject: Re: smb_maperror unmapped error 1:158 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Mar 2006 11:42:28 -0000 Steel City Phantom wrote: > im using bsd 6. i write a script that fires on startup and shutdown > that mounts the drives. i mount several, but here is one of the mount > commands > mount_smbfs -f 0777 -d 0777 //administrator@willie-win/MP3 > /usr/local/drive_h/MP3 > it seems like anything that accesses a file in that share will create > the error. > Lowell Gilbert wrote: > > FYI, you don't need to write a script. I would guess that 6.0 is the same as 5.4 in this respect. You can set a variable in rc.conf extra_netfs_types="smbfs:SAMBA" and then put any password info in /etc/nsmb.conf (read-only root!). Then put an entry in /etc/fstab like: //administrator@willie-win/MP3 /usr/local/drive_h/MP3 smbfs rw 0 0 If /usr/local/drive_h/MP3 is mode 777 then you don't need -f or -d Connecting as administrator seems like a bad idea to me. I have no idea what causes your error. What does a mount which works look like, and how does anything on Windows differ between a mount that works and one that doesn't? --Alex