From owner-freebsd-questions@FreeBSD.ORG Fri Oct 29 13:19:13 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A0A9106566B for ; Fri, 29 Oct 2010 13:19:13 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9CFAB8FC17 for ; Fri, 29 Oct 2010 13:19:12 +0000 (UTC) Received: by fxm17 with SMTP id 17so3134452fxm.13 for ; Fri, 29 Oct 2010 06:19:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=H26UgeJlszHouYKN6p70Nipr/i68QZiM9cVC0tBLaU4=; b=ByYtvLeBByTCsj0SJFa46WO2Bd+x8+32Gv2HQImqV58pgd1nEq6At/yiparJ9eySUK PEPVAsK58qxyTP5Cco48CECPVM0kmgCrCzfXB9BdLYKXB60n3HWdlkkua0ba9/j7wBJL 4blOZ+qtJoR7ZHHlN5W0lNLG4WnLZ8s3vlJVY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Lahp7+6do3F3ZL4pnQJybD+DLW4EVx+m/3EPX2veOZOW+dtLXJweIzTYtSm+Rco6CN BPBZLbMeI9SXY1WqI76hi/PTgexVciI4rHICBQAhSXCYvqAHNm08Z/pzKertXQ7KDc2y w6pacU1xIJjzpxrJKbj7dE+l4o+N9wr4K2+3g= MIME-Version: 1.0 Received: by 10.223.102.79 with SMTP id f15mr1253855fao.134.1288358351595; Fri, 29 Oct 2010 06:19:11 -0700 (PDT) Received: by 10.223.108.194 with HTTP; Fri, 29 Oct 2010 06:19:11 -0700 (PDT) In-Reply-To: References: Date: Fri, 29 Oct 2010 08:19:11 -0500 Message-ID: From: Adam Vande More To: dan Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: mount_msdosfs -L ... [odd behaviour ?] 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: Fri, 29 Oct 2010 13:19:13 -0000 On Fri, Oct 29, 2010 at 7:53 AM, dan wrote: > On 10/29/10 13:22, Adam Vande More wrote: > >> On Fri, Oct 29, 2010 at 6:13 AM, dan wrote: >> >> Thank you for your research and prompt response. The module was >>> available. >>> I tried both: kldload in command line and adding it in loader.conf. >>> >>> Note. In case the module has not been been loaded,as a user, here, one >>> gets >>> 2 messages >>> "mount_msdosfs: cannot find or load msdosfs_iconv kernel module" >>> AND >>> >>> "mount_msdosfs: msdosfs_iconv: Operation not permitted" >>> >>> I wonder what Operation is not permitted as a user and what rights the >>> user >>> needs. >>> >> >> >> sysctl vfs.usermount=1 >> >> Although it doesn't seem correct that you can mount that FS if it's >> already >> been mounted previously by root when that sysctl is at 0. >> >> > Hello > > vfs.usermount is already set. In fact, I can readily mount the filesystem > if I do not specify "-L ...". > > I did mount and then soon unmount the filesystem as root with "-L ...". I see now. The loading of the kernel module is not permitted as I think the mount command attempts to load it if necessary. I'm not aware of any method of granting access to user which would allow them to load/unload kernel modules. Only root level privs can do that. -- Adam Vande More