From owner-freebsd-questions@FreeBSD.ORG Tue Apr 1 04:59:19 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 33F83C2D for ; Tue, 1 Apr 2014 04:59:19 +0000 (UTC) Received: from mail-oa0-x22f.google.com (mail-oa0-x22f.google.com [IPv6:2607:f8b0:4003:c02::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EFA7E2EA for ; Tue, 1 Apr 2014 04:59:18 +0000 (UTC) Received: by mail-oa0-f47.google.com with SMTP id i11so10549649oag.6 for ; Mon, 31 Mar 2014 21:59:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=A8fcVR4S+vkTsgT5BVrY1612A/1PR5/YsVUSkJcQu04=; b=FhnTb6gRccgMcfTS4vqZEhVPRVHnnEUtjgaX6hOuS41x+bhILR+FUTNIRLCw0tYEMC Uz0d293/PfPDSsPOuo9EdyMtKCnL8ifdLEyvKoJhN+m4+A5M/qe1WkDNZCO0jFfw5DIQ LVMjgO2bZLYw5gW8FrWPUeJUD+Ap4VeGDg3je6dvcQjyXhZUoK/1Rv8Bfz2RZH3GeVi0 JiownuEnZQGMHeLdFIMCZONyVkpJN5IgSiyKulfl2o8g3VQpsQJs7C7nJGP47npY6nEz Q07hpyGZv1QpC9shwiAdqMTK3etKhvCqnRn7gY6Vk4s7309RvespS/KEJ3FumPca8qso QJNw== MIME-Version: 1.0 X-Received: by 10.60.173.233 with SMTP id bn9mr27211473oec.9.1396328357469; Mon, 31 Mar 2014 21:59:17 -0700 (PDT) Received: by 10.182.123.17 with HTTP; Mon, 31 Mar 2014 21:59:17 -0700 (PDT) In-Reply-To: <20140331164832.GA28635@slackbox.erewhon.home> References: <201403302139.s2ULdnMG023524@mech-cluster241.men.bris.ac.uk> <20140331164832.GA28635@slackbox.erewhon.home> Date: Mon, 31 Mar 2014 21:59:17 -0700 Message-ID: Subject: Re: untrusted user mount usb, followed handbook, still no luck From: jungleboogie0 To: Anton Shterenlikht , freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2014 04:59:19 -0000 Hi Roland, >Around 2010 I wrote the manual pages devfs.conf(5) and devfs.rules(5). AFAIK they are still up to date. If something is missing or unclear, please submit a PR. http://www.freebsd.org/cgi/man.cgi?query=3Ddevfs.rules&sektion=3D5&n=3D1 Example shows: [localrules=3D10] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/usb-disks.html This example shows:[localrules=3D5] What's the difference between the two? > Roland Thanks, Jungle On 31 March 2014 09:48, Roland Smith wrote: > On Sun, Mar 30, 2014 at 10:39:49PM +0100, Anton Shterenlikht wrote: > > Hi > > > > I followed the handbook, sec, 18.5. USB Storage Devices: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/usb-disks.htm= l > > > > but still I get: > > > > $ mount_msdosfs /dev/da0s1 mnt/ > > mount_msdosfs: /dev/da0s1: Operation not permitted > > $ > > > > I added myself to the operator group, > > and followed all the other steps: > > Perhaps a personal preference, but consider making another group, like us= b. > The operator group is also used for system maintenance. > > > $ id > > uid=3D1001(mexas) gid=3D0(wheel) groups=3D0(wheel),5(operator) > > $ tail -n2 /etc/devfs.conf > > The following lines should be in /etc/devfs.rules, not /etc/devfs.conf! > > > [localrules=3D5] > > add path 'da*' mode 0660 group operator > > The rest looks OK. > > > $ sysctl vfs.usermount > > vfs.usermount: 1 > > $ grep devfs /etc/rc.conf > > devfs_system_ruleset=3D"localrules" > > > What am I missing? > > The handbook chapter looks OK. On FreeBSD 9 or later, not unmounting the > filesystem isn't the problem it used to be. At least you don't get a kern= el > panic anymore. But I would nevertheless recommend to mount USB devices wi= th > the =E2=80=98sync=E2=80=99 option. > > Around 2010 I wrote the manual pages devfs.conf(5) and devfs.rules(5). > AFAIK > they are still up to date. If something is missing or unclear, please > submit a > PR. > > If you get this working, you might want to check out sysutils/automount. = It > will mount partitions for you as soon as they are discovered. > > Roland > -- > R.F.Smith http://rsmith.home.xs4all.nl/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] > pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0) > --=20 ------- inum: 883510009902611 sip: jungleboogie@sip2sip.info xmpp: jungle-boogie@jit.si