From owner-freebsd-stable@FreeBSD.ORG Wed Dec 13 09:11:55 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 2164E16A415 for ; Wed, 13 Dec 2006 09:11:55 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail21.syd.optusnet.com.au (mail21.syd.optusnet.com.au [211.29.133.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F1BA43CAA for ; Wed, 13 Dec 2006 09:10:20 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) 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 kBD9Bkbi019831 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 13 Dec 2006 20:11:47 +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 kBD9BkPJ001446 for ; Wed, 13 Dec 2006 20:11:46 +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 kBD9BkgU001445 for freebsd-stable@freebsd.org; Wed, 13 Dec 2006 20:11:46 +1100 (EST) (envelope-from peter) Date: Wed, 13 Dec 2006 20:11:46 +1100 From: Peter Jeremy To: freebsd-stable@freebsd.org Message-ID: <20061213091146.GB888@turion.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Subject: 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, 13 Dec 2006 09:11:55 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I am trying to mount a SMB filesystem as an ordinary user (because I don't want to give root to this particular person). Whilst running mount_smbfs as root works, attempting the same command as non-root consistently returns mount_smbfs: can not setup kernel iconv table (ISO8859-1:tolower): syserr = =3D Operation not permitted I've looked at a ktrace and the source code and the offending code is sysctlbyname("kern.iconv.add", ...) I've looked through iconv_sysctl_add() and can't see any way for the code to return EPERM. My reading of all the code also suggests that once the relevant iconv tables are loaded, then iconv_sysctl_add() should return EEXIST (via iconv_register_cspair()). But even if the relevant translation table is loaded (by mounting a SMB filesystem as root), I still get the above error when trying to use mount_smbfs as a user. I've even written some code to let me look at the kern.iconv MIB tree which confirms the above but doesn't get any me any closer to a solution. This is the same on two 6.2-PRERELEASE systems and I get the same behaviour on an oldish 7-current system. Does anyone have any suggestions on what is going wrong? --=20 Peter Jeremy --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFf8PS/opHv/APuIcRAkZJAKCs7Agq1P1U/DMv/S99j25S9iVRZACfb7V5 +j3uzD/cvzgL7xomPLhTKRY= =cXcm -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--