misc/181578: mount_smbfs fails to mount with non-root privileges
Martin Laabs
info at martinlaabs.de
Tue Aug 27 06:40:01 UTC 2013
>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 at 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 at 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:
More information about the freebsd-bugs
mailing list