From owner-freebsd-bugs@FreeBSD.ORG Tue Aug 27 06:40:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E4F29E6C for ; Tue, 27 Aug 2013 06:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ABD542EDF for ; Tue, 27 Aug 2013 06:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7R6e0jp010518 for ; Tue, 27 Aug 2013 06:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7R6e0hi010517; Tue, 27 Aug 2013 06:40:00 GMT (envelope-from gnats) Resent-Date: Tue, 27 Aug 2013 06:40:00 GMT Resent-Message-Id: <201308270640.r7R6e0hi010517@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Laabs Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4BA4AE53 for ; Tue, 27 Aug 2013 06:38:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3A0C52ED2 for ; Tue, 27 Aug 2013 06:38:06 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7R6c5Xm070192 for ; Tue, 27 Aug 2013 06:38:05 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7R6c5kn070187; Tue, 27 Aug 2013 06:38:05 GMT (envelope-from nobody) Message-Id: <201308270638.r7R6c5kn070187@oldred.freebsd.org> Date: Tue, 27 Aug 2013 06:38:05 GMT From: Martin Laabs To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/181578: mount_smbfs fails to mount with non-root privileges X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Aug 2013 06:40:01 -0000 >Number: 181578 >Category: misc >Synopsis: mount_smbfs fails to mount with non-root privileges >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 27 06:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Martin Laabs >Release: 9-STABLE-p5 >Organization: - >Environment: FreeBSD laabs.hf.ifn.et.tu-dresden.de 9-STABLE-p5 FreeBSD 9-STABLE-p5 #0: Tue Jul 30 16:02:30 UTC 2013 root@amd64-builder.pcbsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: With vfs.usermount=1 you can allow ordinary users to mount a file system. This can be handy for e.g. USB-Sticks and for samba shares since the user might has to type its password (that is not known at system boot time) However the mount_smbfs tool seems to need root privileges even if the sysctl is set: [martin@laabs ~]$ mount /home/net-shared-all/ mount_smbfs: can not setup kernel iconv table (ISO8859-1:tolower): syserr = Operation not permitted With root privileges the mount call work as expected >How-To-Repeat: Try the follwoing as a normal user: sudo sysctrl vfs.usermount=1 mount_smbfs >Fix: >Release-Note: >Audit-Trail: >Unformatted: