From owner-freebsd-questions@FreeBSD.ORG Wed Oct 1 20:02:39 2008 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 545161065690 for ; Wed, 1 Oct 2008 20:02:39 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr16.xs4all.nl (smtp-vbr16.xs4all.nl [194.109.24.36]) by mx1.freebsd.org (Postfix) with ESMTP id C54858FC20 for ; Wed, 1 Oct 2008 20:02:38 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id m91K2aXF007142; Wed, 1 Oct 2008 22:02:37 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 85CD2BA8A; Wed, 1 Oct 2008 22:02:36 +0200 (CEST) Date: Wed, 1 Oct 2008 22:02:36 +0200 From: Roland Smith To: EforeZZ Message-ID: <20081001200236.GA58548@slackbox.xs4all.nl> References: <20080930173802.GB16426@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: built-in samba mount 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, 01 Oct 2008 20:02:39 -0000 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 01, 2008 at 12:43:01PM +0300, EforeZZ wrote: > > > I'm able to mount only //pc/share (not //pc/share/folder) and I do not > > have > > > read access to read contents of "//pc/share" and FreeBSD does not let= me > > to > > > change the directory to "//pc/share/folder". > > > Windows allows to mount //pc/share/folder and I have no access proble= ms > > in > > > Windows. > > > Is there any solution for FreeBSD? > > > > Read the mount_smbfs manual page (with the command 'man mount_smbfs'). A > > quick look tells us that you'll need to use //user@pc/share/folder > > instead of //pc/share/folder. Other options allow you to configure > > access rights and owner/group attributes. > > >=20 > I do use //user@pc/share/folder for mounting but I get //user@pc/share > mounted instead of //user@pc/share/folder. > It seems that the "/folder" part is ignored. Generally, you can mount a filesystem, but not just a subdirectory. You might be able to mount the share somewhere and then use mount_nullfs to mount the subdirectory you want somewhere else. See mount_nullfs(8). Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjj11wACgkQEnfvsMMhpyWHIwCgiZAGeSjhyhqlpMtq/6KDfani 4IcAn2Jn6BRoQc0zVr35FCyuH2q8bwx+ =mghD -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--