Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 2003 22:44:38 +0000
From:      Ceri Davies <ceri@FreeBSD.org>
To:        Dr Lyman Hazelton <lrh@alum.mit.edu>
Cc:        tech@freebsdmall.com
Subject:   Re: Is there something special about mount points in / ?
Message-ID:  <20031119224438.GH66785@submonkey.net>
In-Reply-To: <200311191539.33723.lrh@alum.mit.edu>
References:  <200311191539.33723.lrh@alum.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031119224438.GH66785>