mount_smbfs -- mount a shared resource from an SMB file server (like a MS windows server)

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

Mounts a share from a remote server using SMB/CIFS protocol) like a MS windows share.

server: NetBIOS name of remote computer,
user: remote user name. If is omitted the logged in user id will be used.
share: resource name on a remote server.

-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
-f mode Default file mode is taken from mount point.
Specify permissions assigned to files and directories, as octal numbers.
-d mode Default 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.

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.