Cannot Mount SMB Shares as a Regular User

You might see the following error message when you attempt to mount an SMB share as a regular user on a mount point that you own:

$ mount -F smbfs //server-name/share-name mount-point
Insufficient privileges, mount must be set-uid root

Verify that you have the following entries in your /etc/security/exec_attr.d/core-os file:

Forced Privilege:solaris:cmd:RO::/usr/lib/fs/smbfs/mount:privs=sys_mount
Forced Privilege:solaris:cmd:RO::/usr/lib/fs/smbfs/umount:privs=sys_mount

These entries in the /etc/security/exec_attr.d/core-os file enable you to mount and unmount SMB shares on mount points that you own as a regular user.

If you need to specify a user name, use the -o option:

$ mount -F smbfs -o user=username //server-name/share-name mount-point