From owner-freebsd-stable@freebsd.org Wed Jul 29 20:24:10 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 727209ADF95 for ; Wed, 29 Jul 2015 20:24:10 +0000 (UTC) (envelope-from eugen@eg.sd.rdtc.ru) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E93C9E45 for ; Wed, 29 Jul 2015 20:24:07 +0000 (UTC) (envelope-from eugen@eg.sd.rdtc.ru) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t6TK4hMp011816 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 29 Jul 2015 22:04:44 +0200 (CEST) (envelope-from eugen@eg.sd.rdtc.ru) X-Envelope-From: eugen@eg.sd.rdtc.ru X-Envelope-To: aeuii@posteo.de Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.9/8.14.9) with ESMTP id t6TK4f6h012745 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Jul 2015 03:04:41 +0700 (KRAT) (envelope-from eugen@eg.sd.rdtc.ru) Received: (from eugen@localhost) by eg.sd.rdtc.ru (8.14.9/8.14.9/Submit) id t6TK4fvN012744; Thu, 30 Jul 2015 03:04:41 +0700 (KRAT) (envelope-from eugen) Date: Thu, 30 Jul 2015 03:04:41 +0700 From: Eugene Grosbein To: aeuii@posteo.de Cc: freebsd-stable@freebsd.org Subject: Re: mount_msdosfs: msdosfs_iconv: Operation not permitted Message-ID: <20150729200441.GA11983@rdtc.ru> References: <86mvyen4jz.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86mvyen4jz.fsf@posteo.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM, RP_MATCHES_RCVD autolearn=no version=3.3.2 X-Spam-Report: * 0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2015 20:24:10 -0000 On Wed, Jul 29, 2015 at 09:32:00PM +0200, aeuii@posteo.de wrote: > Generally, I'm not able to mount msdos file system as a regular user > with extra charset options (-L) before the superuser. After the > superuser mounts (and unmounts) the file system, regular users can do it > to. msdosfs charset support must be compiled into the kernel or loaded by mount_msdosfs(8) first time it is used. When mount_msdosfs command run with superuser rights, it loads needed code into the kernel successfully. Without superuser righs, it fails. Just load libiconv.ko and msdosfs_iconv.ko by means of /boot/loader.conf or /etc/rc.conf at boot time and you should be fine. Eugene Grosbein