Bug 181578

Summary: mount_smbfs(8) fails to mount with non-root privileges
Product: Base System Reporter: Martin Laabs <info>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: mazhe
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Martin Laabs 2013-08-27 07:40:00 UTC
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>
Comment 1 Matthieu Volat 2014-11-07 09:30:14 UTC
Not sure if it is a good practice to comment more than a year later, but this was reported before as bug Bug 61503 :
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=61503

Yet it would deserve some attention :)
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-05-20 23:50:12 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"