From owner-freebsd-questions@FreeBSD.ORG Thu Nov 4 02:28:34 2004 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 A020E16A4CE for ; Thu, 4 Nov 2004 02:28:34 +0000 (GMT) Received: from lakermmtao08.cox.net (lakermmtao08.cox.net [68.230.240.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1826743D41 for ; Thu, 4 Nov 2004 02:28:34 +0000 (GMT) (envelope-from micheal@tsgincorporated.com) Received: from router.rcservers.com ([68.12.171.184]) by lakermmtao08.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP <20041104022832.YCA20400.lakermmtao08.cox.net@router.rcservers.com>; Wed, 3 Nov 2004 21:28:32 -0500 Received: from dredster ([192.168.1.2]) by router.rcservers.com (8.13.1/8.12.9) with ESMTP id iA42TMsH067533; Wed, 3 Nov 2004 20:29:22 -0600 (CST) (envelope-from micheal@tsgincorporated.com) Message-ID: <060601c4c215$ffaff580$0201a8c0@dredster> From: "Micheal Patterson" To: "Mark Jayson Alvarez" , "albi" References: <20041104014657.10626.qmail@web51609.mail.yahoo.com> Date: Wed, 3 Nov 2004 20:28:15 -0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 cc: freebsd-questions@freebsd.org Subject: Re: How can I specify the ipaddress in smbfs entry in fstab? 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: Thu, 04 Nov 2004 02:28:34 -0000 ----- Original Message ----- From: "Mark Jayson Alvarez" To: "albi" Cc: Sent: Wednesday, November 03, 2004 7:46 PM Subject: Re: How can I specify the ipaddress in smbfs entry in fstab? > > --- albi wrote: > >> hi, >> >> > mountpt >> > //guest@samba/mp3s /mp3 >> >> you can probably use e.g. >> >> //guest@10.1.1.1/mp3s /mp3 > > It still doesn't work. > I remember mounting it manually using the command > > mount_smbfs -I ipaddress //guest@samba/mp3s /mtpoint > > I don't think substituting ipaddress(eg, 10.1.1.1) for > "samba" in guest@samba will make any sense because I > still have to specify its IP address using the "-I" > option whenever I mount it manually. > > >> in your /etc/fstab, but of course you can also add >> your samba-server >> in /etc/hosts > > tried it also, but didn't work. > > Anymore idea? thanks. > If you trust those with root access on your system, you can use the /etc/nsmb.conf file and configure that with the proper info for the remote server: [HOST:USER:SHARE_NAME] addr=HOST_IP password=USER_password_on_remote_system workgroup=domain/workgroup ... then edit your fstab to something like: //USER@HOST/SHARE /mountpoint smbfs rw,-N,-I=remote system ip 0 0 USER, HOST, SHARE are the same as in the nsmb.conf file, and I've found that these are often case sensitive. If the password is listed in nsmb.conf, then the -N in the fstab entry will use that password and not require you to enter it. Once done, a simple mount /mountpoint should get you on your way. Hope it helps. -- Micheal Patterson TSG Network Administration 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.