From owner-freebsd-questions@FreeBSD.ORG Thu Jun 16 10:00:24 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 6089016A41C for ; Thu, 16 Jun 2005 10:00:24 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id BE06A43D1F for ; Thu, 16 Jun 2005 10:00:23 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 16 Jun 2005 10:00:22 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp020) with SMTP; 16 Jun 2005 12:00:22 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-questions@freebsd.org Date: Thu, 16 Jun 2005 12:00:08 +0200 User-Agent: KMail/1.8 References: <20050616021807.GA1611@panix.com> In-Reply-To: <20050616021807.GA1611@panix.com> X-Birthday: Oct. 6th 1972 X-CelPhone: +49 (0) 173 9967781 X-Tel: +49 (0) 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4012116.EWbaAceBuU"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200506161200.18420@harrymail> X-Y-GMX-Trusted: 0 Cc: Joe Altman Subject: Re: The perennial vfs.usermount query 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: Thu, 16 Jun 2005 10:00:24 -0000 --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 > > 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--