Date: Tue, 27 Aug 2013 06:38:05 GMT From: Martin Laabs <info@martinlaabs.de> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/181578: mount_smbfs fails to mount with non-root privileges Message-ID: <201308270638.r7R6c5kn070187@oldred.freebsd.org> Resent-Message-ID: <201308270640.r7R6e0hi010517@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <SMB-Mountpoint> <Mountpoint you own> >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308270638.r7R6c5kn070187>