BSD System Manager's Manual MOUNT_SMBFS(8)
mount_smbfs -- mount a shared resource from an SMB file server

mount_smbfs [-N] [-o options] [-d mode] [-f mode] [-h]
             //[domain;][user[:password]@]server[/share] mount_point

The mount_smbfs command mounts a share from a remote server using SMB/CIFS protocol.

-N No password requested at mount.
At run time, mount_smbfs reads ~/Library/Preferences/nsmb.conf for password etc.
If no password is found, mount_smbfs prompts for it.
-o
nobrowse not to be display via Carbon subsystem
automounted flags the mountpoint as mounted by the automounter.
nostreams Don't use NTFS Streams
soft=sss Fail file system calls after sss seconds.
nonotification
Specify permissions assigned to files and directories, as octal numbers.
-f mode Default value for the file mode is taken from mount point,
-d mode Default value for the directory mode adds execute permission where the file mode gives read permission.
These permissions can differ from the rights granted by SMB server.
-h Prints a help message, much like the SYNOPSIS above.
 //[domain;][user[password]@] server[/share]
mount_smbfs will use
server as the NetBIOS name of remote computer,
user as the remote user name and
share as the resource name on a remote server. Domain and/or password may be specified here. If user is omitted the logged in user id will be used. Omitting share is an error when mount_smbfs is run from the command line, otherwise a browsing dialogue is presented.
path Path to mount point.

FILES

nsmb.conf static parameters for connections and other information. EXAMPLES This example shows the proper url to use to mount the share PUBLIC from the SMB server myserver:

mkdir /smb/public
mount -t smbfs //username:userpass@myserver/PUBLIC /smb/public

This example shows the proper url to use to mount the share PUBLIC from the SMB server myserver as guest: mkdir /smb/public
mount -t smbfs //guest:@myserver/PUBLIC /smb/public

SEE ALSO

mount(2), nsmb.conf(5), mount(8), umount(8)

nsmb.conf

information about the computers, users, and shares or mount points for the SMB network protocol.(aka CIFS)

Configuration hierarchy is made up of sections, parameters and values.