From owner-freebsd-stable@FreeBSD.ORG Wed Dec 20 16:49:40 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 080C116A403 for ; Wed, 20 Dec 2006 16:49:40 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from fallbackmx02.syd.optusnet.com.au (fallbackmx02.syd.optusnet.com.au [211.29.133.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15FF843CB8 for ; Wed, 20 Dec 2006 16:49:33 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from mail21.syd.optusnet.com.au (mail21.syd.optusnet.com.au [211.29.133.158]) by fallbackmx02.syd.optusnet.com.au (8.12.11.20060308/8.12.11) with ESMTP id kBK885PJ020998 for ; Wed, 20 Dec 2006 19:08:05 +1100 Received: from turion.vk2pj.dyndns.org (c58-107-94-118.belrs4.nsw.optusnet.com.au [58.107.94.118]) by mail21.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id kBK8806P031449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 20 Dec 2006 19:08:01 +1100 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id kBK8804C001316; Wed, 20 Dec 2006 19:08:00 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id kBK880G2001315; Wed, 20 Dec 2006 19:08:00 +1100 (EST) (envelope-from peter) Date: Wed, 20 Dec 2006 19:08:00 +1100 From: Peter Jeremy To: Juraj Lutter Message-ID: <20061220080800.GA1111@turion.vk2pj.dyndns.org> References: <1166012592.00653256.1166001601@10.7.7.3> <4586CAEF.2000404@icyb.net.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-stable@freebsd.org Subject: Re: Mounting smbfs as non-root X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 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, 20 Dec 2006 16:49:40 -0000 --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 2006-Dec-20 00:50:15 +0100, Juraj Lutter wrote: >On 12/20/06, martinko wrote: >>>> I've looked through iconv_sysctl_add() and can't see any way for the >>>> code to return EPERM. >>I've been experiencing the exactly same issue for too long, too. :-(( >> > >Load the iconv modules as root before letting users to mount. This doesn't work because it always invokes the sysctl - which sees that it's non-root and returns EPERM before it discovers that the the requested maps are already installed. mount_smbfs is setuid root on Apple (presumably OS-X) and juggles euid to avoid this and similar problems. I think the solution is to make it (at least optionally) setuid on FreeBSD. I have this on my todo list but haven't gotten around to it yet. --=20 Peter Jeremy --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFiO9g/opHv/APuIcRAhhHAJ0RSqNEM4qc6ug/YyJ66hWw+sYpcACeNlKZ b6Ijj9N0EgbPUOL+cqyDen8= =Ujxj -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--