Mounting smbfs as non-root

Peter Jeremy peterjeremy at
Wed Dec 20 08:49:40 PST 2006

On Wed, 2006-Dec-20 00:50:15 +0100, Juraj Lutter wrote:
>On 12/20/06, martinko <gamato at> 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.

Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-stable mailing list