From owner-freebsd-questions@FreeBSD.ORG Wed Nov 23 01:08:16 2005 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 D3B8416A41F for ; Wed, 23 Nov 2005 01:08:16 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA7A343D81 for ; Wed, 23 Nov 2005 01:08:12 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [80.192.2.225] ([80.192.2.225]) by smtp-out2.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Wed, 23 Nov 2005 01:09:04 +0000 Message-ID: <4383C0FA.3000600@dial.pipex.com> Date: Wed, 23 Nov 2005 01:08:10 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.12) Gecko/20051106 X-Accept-Language: en MIME-Version: 1.0 To: Robert Fitzpatrick References: <1132624011.3289.2.camel@felipa.webtent.org> In-Reply-To: <1132624011.3289.2.camel@felipa.webtent.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Nov 2005 01:09:04.0788 (UTC) FILETIME=[7F497540:01C5EFCA] Cc: FreeBSD Subject: Re: Accessing samba shares without password prompts 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: Wed, 23 Nov 2005 01:08:16 -0000 Robert Fitzpatrick wrote: >Can someone point me to info on how to access shares on the netowrk >without having to provide the password. I am logged in to my FreeBSD 6.0 >workstation with the user name and password equal to that of a user on >the other samba servers and Windows. > > IIUC and AFAIK, you can't. Unlike windows, Unix does not store your password when you log in (just encrypts and compares to passwd file) so it cannot automatically provide credentials to samba. You can, however, get mount_smbfs to look in a file to find your password, so as long as that file is protected. See man mount_smbfs -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. If you're going to do this you might want to use a different password for windows from BSD. And make sure you protect the file, though any super-user will always be able to read it, if that is an issue. --Alex