The smbmnt program is normally invoked by a mount command to smbmount, and the command line arguments are passed directly to smbmnt.
The defaults for these values are the current uid and gid.
-f file mode, -d dir mode
The values must be given as octal numbers. The default values are taken from the current umask, where the file mode is the current umask, and the dir mode adds execute permissions where the file mode gives read permissions.
Note that these permissions can differ from the rights the server gives to us. If you do not have write permissions on the server, you should choose a file mode that matches your actual permissions. This certainly cannot override the restrictions imposed by the server.
In addition to specifying the file mode, the -f argument can be used to specify certain bug-fix workarounds. This allows bug fixes to be enabled on a per mount-point basis, rather than being compiled into the kernel. The required bug fixes are specified by prepending an (octal) value to the file mode. For information on the available bug workarounds, refer to the smbfs.txt file in the Linux kernel Documentation directory.