Date: Wed, 20 Dec 2006 19:08:00 +1100 From: Peter Jeremy <peterjeremy@optushome.com.au> To: Juraj Lutter <wilbury@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: Mounting smbfs as non-root Message-ID: <20061220080800.GA1111@turion.vk2pj.dyndns.org> In-Reply-To: <eb8efda50612191550l2b0f8b62s1a870ca533fcb733@mail.gmail.com> References: <1166012592.00653256.1166001601@10.7.7.3> <4586CAEF.2000404@icyb.net.ua> <em9scg$jfh$1@sea.gmane.org> <eb8efda50612191550l2b0f8b62s1a870ca533fcb733@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <gamato@users.sf.net> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061220080800.GA1111>