Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2005 12:00:08 +0200
From:      Emanuel Strobl <Emanuel.strobl@gmx.net>
To:        freebsd-questions@freebsd.org
Cc:        Joe Altman <fj@panix.com>
Subject:   Re: The perennial vfs.usermount query
Message-ID:  <200506161200.18420@harrymail>
In-Reply-To: <20050616021807.GA1611@panix.com>
References:  <20050616021807.GA1611@panix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart4012116.EWbaAceBuU
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Am Donnerstag, 16. Juni 2005 04:18 schrieb Joe Altman:
> 1)	  If this:
>
> $: more /etc/sysctl.conf
>
> # $FreeBSD: src/etc/sysctl.conf,v 1.8 2003/03/13 18:43:50 mux Exp $
> #
> #  This file is read when going to multi-user and its contents piped
> # thru ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for
> # details.
> #
> # Uncomment this to prevent users from seeing information about
> #processes that are being run under another UID.
> #security.bsd.see_other_uids=3D0
>
> vfs.usermount=3D1
>
> 2)	And, --> after a reboot <--, this:
>
> $: sysctl -a | grep vfs.usermount
> vfs.usermount: 0
>
> Ergo, I get this:
>
> cd9660: /dev/acd0: Operation not permitted
>
> When trying this:
>
> mount -t cd9660 /dev/acd0 /usr/home/joe/mountpoint/
>
> Then my question is: wtfoobar am I doing wrong?

Nothing. But if you want it persistant you have to put it in loader.conf or=
=20
sysctl.conf, depending on the kind of sysctl (loader tunable or runtime=20
tunable).

>
> Additional info:
>
> $: more /etc/devfs.conf
> <snip>
> perm    acd0    0660
> link    acd0    cdrom
>
> Speculating, I assume that the BUGS section of sysctl.conf(5) applies,
> somehow.

Hmm, what's your problem? You can't set the sysctl or it is unset after a=20
reboot? The latter of course is true.

=2DHarry

>
> NB: the page covering this in the FAQ at freebsd.org says run this:
>
> sysctl -w vfs.usermount=3D1
>
> The man page for sysctl on 5.4 says this:
>
> COMPATIBILITY
>      The -w option has been deprecated and is silently ignored.
>
> Is the -w flag only for 4.x installations?
>
> I'm pretty sure I'm going to see the answer to this as soon as I hit
> send.

--nextPart4012116.EWbaAceBuU
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQBCsU2yBylq0S4AzzwRApBGAKCOdXYKTyt2K3jLx6ltS67zHcESSQCfS59v
T0TIE0exVhxkrsuIpXudMJY=
=/pxK
-----END PGP SIGNATURE-----

--nextPart4012116.EWbaAceBuU--



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