From owner-freebsd-questions@FreeBSD.ORG Fri Jul 15 00:42:33 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E20CB106564A for ; Fri, 15 Jul 2011 00:42:33 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id A70FD8FC0C for ; Fri, 15 Jul 2011 00:42:33 +0000 (UTC) Received: from r55.edvax.de (port-92-195-180-180.dynamic.qsc.de [92.195.180.180]) by mx02.qsc.de (Postfix) with ESMTP id 680331D941; Fri, 15 Jul 2011 02:42:31 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p6F0gUG3002923; Fri, 15 Jul 2011 02:42:30 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 15 Jul 2011 02:42:30 +0200 From: Polytropon To: Erman =?UTF-8?Q?Z=C3=BClf=C3=BCkaro=C4=9Flu?= Message-Id: <20110715024230.d510f57f.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2011 00:42:34 -0000 On Fri, 15 Jul 2011 02:06:06 +0300, Erman Zülfükaroğlu wrote: > Hi , I try to mount free bsd to Windows sharing folder. > mount_smbs -I 10.0.0.x /10.0.0.x/share folder name /mnt/mount folder Is this the full command? Seems to contain too many spaces... > but i can't. > mount_smbfs=unable open to connection syserr=connection refused Maybe you need tp specify user name and password for access? > samba installed. Do you have required settings in /etc/nsmb.conf, like workgroup name, host address or password? Also did you quote irregular characters (like spaces) in the directory name properly? See "man nsmb.conf" for details. Sorry I can't be more specific as I'm not a "Windows" person. That's why I'd like to mention that the correct term for a directory is "directory", not "folder" (which is the name of an arbitrary symbol representing a directory). :-) Here's an example of accessing a CIFS share on a "Windows" PC using FreeBSD: In /etc/nsmb.conf, we have: [default] workgroup=HARDLYWORKING [WINPC] addr=192.168.2.2 [WINPC:Administrator] password=TOPSECRET In /etc/fstab, the "DOS drive letters" of the "Windows" PC are represented as follows: //Administrator@WINPC/a$ /smb/a smbfs rw,noauto 0 0 //Administrator@WINPC/c$ /smb/c smbfs rw,noauto 0 0 //Administrator@WINPC/d$ /smb/d smbfs rw,noauto 0 0 //Administrator@WINPC/e$ /smb/e smbfs rw,noauto 0 0 //Administrator@WINPC/f$ /smb/f smbfs rw,noauto 0 0 Then the mount command can be performed like this: # mount /smb/c But as I said, I've not bothered with "Windows" so I can't tell you how to mount a CIFS share representing a subdirectory on a specific drive. I am also quite sure that using "Administrator" for accessing is a bad idea, but it's not _my_ idea - I just found this little example shown above in my binary garbage can. :-) See "man mount_smbfs" for details. Still I hope this gives you some help and further inspirations on what to read. PS. It's useful specifying a subject related to your question, not just "help". -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...