From owner-freebsd-questions@FreeBSD.ORG Sun Mar 30 22:25:42 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 68ED0D3F for ; Sun, 30 Mar 2014 22:25:42 +0000 (UTC) Received: from eu1sys200aog123.obsmtp.com (eu1sys200aog123.obsmtp.com [207.126.144.155]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B9CC61C1 for ; Sun, 30 Mar 2014 22:25:41 +0000 (UTC) Received: from mail-we0-f178.google.com ([74.125.82.178]) (using TLSv1) by eu1sys200aob123.postini.com ([207.126.147.11]) with SMTP ID DSNKUziZ3odlvxupXnicnb6tTPJ/sRXik9u5@postini.com; Sun, 30 Mar 2014 22:25:41 UTC Received: by mail-we0-f178.google.com with SMTP id u56so3947239wes.37 for ; Sun, 30 Mar 2014 15:25:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:message-id:to:subject:reply-to :in-reply-to; bh=OvRUGTKdSvSH81zvWYFNVyM068E6V5xrMDd2UYxLhX8=; b=WcZiT06tLmZnGq98XkELkJevPb30s6b5Nf4QNw4qnksVdXTR9jCE4Dwc4eWM1UMJCM ESWnTsmFfiR2iSvyxgQ6g06KOCgnR6BL53065cv6fy7gAiLS6LepE+7yith3jk1r6jBV I5+TCAsivXqPwScH98+AP5zLeVFgQW32r/n1X8Y1wERAVVx+40ynZpdw92qa1Vhf4PAU v8ulvTNJwQ67nDxXPFNfQ1B996ujqRdTDK0qvW+Bd3Em1NVyA41VLoXAy8CwlchjXJaJ kB/uoNBBINqM92uIzc/OGO6QPTXgi4q8UGgAYVDBbSJd4OfV91Qc87yJk9A3KhIH6Ku5 bpaQ== X-Received: by 10.180.189.43 with SMTP id gf11mr7635834wic.32.1396216669338; Sun, 30 Mar 2014 14:57:49 -0700 (PDT) X-Gm-Message-State: ALoCoQm+bt/XNzpoyFKo1j3PoojlP1O5++yxjpxIYzr4fwCb20GIvy6ezoH0Xkbcr2VqPI4NN4pL4yjz+bGPBEbcjnwARsGrDwKtit8aUzk28aKo4m8bixGUXuItkLNExnBy3DifyzVyxOKiseylaMhkJ7SwueWczLfgzzHon71I4Jl9bPzHxq32m2S7IeZaWtCrsmzbMpdr X-Received: by 10.180.189.43 with SMTP id gf11mr7635821wic.32.1396216669242; Sun, 30 Mar 2014 14:57:49 -0700 (PDT) Received: from mech-cluster241.men.bris.ac.uk (mech-cluster241.men.bris.ac.uk. [137.222.187.241]) by mx.google.com with ESMTPSA id bj3sm10216450wjb.14.2014.03.30.14.57.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Mar 2014 14:57:48 -0700 (PDT) Sender: Anton Shterenlikht Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.8/8.14.6) with ESMTP id s2ULvk9l023644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 30 Mar 2014 22:57:46 +0100 (BST) (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.8/8.14.6/Submit) id s2ULvkkH023643; Sun, 30 Mar 2014 22:57:46 +0100 (BST) (envelope-from mexas) Date: Sun, 30 Mar 2014 22:57:46 +0100 (BST) From: Anton Shterenlikht Message-Id: <201403302157.s2ULvkkH023643@mech-cluster241.men.bris.ac.uk> To: freebsd-questions@freebsd.org, jmc-freebsd2@milibyte.co.uk, mexas@bris.ac.uk Subject: Re: untrusted user mount usb, followed handbook, still no luck In-Reply-To: <201403302251.29075.jmc-freebsd2@milibyte.co.uk> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: mexas@bris.ac.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2014 22:25:42 -0000 >From jmc-freebsd2@milibyte.co.uk Sun Mar 30 22:52:25 2014 > >On Sunday 30 Mar 2014 22:39:49 Anton Shterenlikht wrote: > >> I followed the handbook, sec, 18.5. USB Storage Devices: >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/usb-disks.html >> >> but still I get: >> >> $ mount_msdosfs /dev/da0s1 mnt/ > >Do you own the mountpoint? yes: $ ls -al /home/mexas/mnt/ total 8 drwxr-xr-x 2 mexas wheel 512 Mar 30 22:00 . drwxr-xr-x 43 mexas wheel 2048 Mar 30 22:24 .. $ One thing is slightly not clear. Examples in devfs.conf(5) man page are quite different to the handbook. Perhaps the devfs.conf man page is outdated. I see lots of examples on the net from 5-10 years ago, all similar to devfs.conf style, e.g.: http://www.cyberciti.biz/faq/freebsd-allow-ordinary-users-mount-cd-rom-dvds-usb-removabledevice/ own /dev/da0 root:operator perm /dev/da0 0666 which is different to the handbook, which has: [localrules=5] add path 'da*' mode 0660 group operator HOwever, I tried adding the "own/perm" lines to devfs.conf too, still no luck. Many thanks Anton