From owner-freebsd-questions@FreeBSD.ORG Wed Nov 19 14:44:45 2003 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 9287E16A4CE for ; Wed, 19 Nov 2003 14:44:45 -0800 (PST) Received: from shaft.techsupport.co.uk (shaft.techsupport.co.uk [212.250.77.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4884743F3F for ; Wed, 19 Nov 2003 14:44:44 -0800 (PST) (envelope-from setantae@submonkey.net) Received: from cpc2-cdif3-6-0-cust204.cdif.cable.ntl.com ([81.103.67.204] helo=shrike.submonkey.net ident=mailnull) by shaft.techsupport.co.uk with esmtp (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.24; FreeBSD 4.9) id 1AMb3x-00035l-Gl; Wed, 19 Nov 2003 22:44:41 +0000 Received: from setantae by shrike.submonkey.net with local (Exim 4.24; FreeBSD 4.9) id 1AMb3u-000GSF-N0; Wed, 19 Nov 2003 22:44:38 +0000 Date: Wed, 19 Nov 2003 22:44:38 +0000 From: Ceri Davies To: Dr Lyman Hazelton Message-ID: <20031119224438.GH66785@submonkey.net> Mail-Followup-To: Ceri Davies , Dr Lyman Hazelton , tech@freebsdmall.com, freebsd-questions@FreeBSD.ORG References: <200311191539.33723.lrh@alum.mit.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Il7n/DHsA0sMLmDu" Content-Disposition: inline In-Reply-To: <200311191539.33723.lrh@alum.mit.edu> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.4i Sender: Ceri Davies cc: freebsd-questions@FreeBSD.ORG cc: tech@freebsdmall.com Subject: Re: Is there something special about mount points in / ? 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: Wed, 19 Nov 2003 22:44:45 -0000 --Il7n/DHsA0sMLmDu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 19, 2003 at 03:39:33PM -0700, Dr Lyman Hazelton wrote: > I have set vfs.usermount=3D1, and now I can create a local directory=20 > (call it "xxx") in my home dir and use it successfully to do >=20 > mount -t cd9660 /dev/cd0 xxx >=20 > or=20 >=20 > mount -t msdos /dev/fd0 xxx >=20 > However, if I attempt to use the "standard" mount points, /cdrom or=20 > /floppy, to do the same thing, like >=20 > mount -t cd9660 /dev/cd0 /cdrom >=20 > I get the message: cd9660: /dev/cd0: Operation not permitted. >=20 > I have set the permissions on /cdrom to 555 and the file is owned by=20 > root:operators, and my non-root user-id is a member of operators. Is=20 > there something special I have to do to /cdrom to make it usable to=20 > non-root users? The user doing the mount needs to own the mountpoint directory. =46rom the manpage for mount(2): ERRORS The mount() function will fail when one of the following occurs: [EPERM] The caller is neither the super-user nor the owner of dir. Ceri --=20 --Il7n/DHsA0sMLmDu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/u/JWocfcwTS3JF8RAhgHAJ94jO1C1a4Zj58sYxkCo2+iWS+Z7gCgtoVI cCNQBxwTxaypTAubRstxq4M= =6Z1Y -----END PGP SIGNATURE----- --Il7n/DHsA0sMLmDu--