MOUNT_SMBFS(8)
β¨ MOUNT_SMBFS(8) β¨
okay so bestie, this is a page from the System Manager's Manual and it's literally all about mount_smbfs β the tool that mounts a server message block (SMB1/CIFS) file system π
π NAME π
mount_smbfs β mount a server message block (SMB1/CIFS) file system
πΈ SYNOPSIS πΈ
mount_smbfs [-E cs1:cs2] [-I host] [-L locale] [-M crights:srights] [-N]
[-O cowner:cgroup/sowner:sgroup] [-R retrycount]
[-T timeout] [-U username] [-W workgroup] [-c case]
[-d mode] [-f mode] [-g gid] [-n opt] [-u uid]
//user@server[:port1[:port2]]/share node
π¦ DESCRIPTION π¦
The mount_smbfs command mounts a share from a remote server using SMB/CIFS protocol. it's giving remote-file-system realness, no cap π₯
The options are as follows:
-Ecs1:cs2 β specifies local (cs1) and server's (cs2) character sets.-Ihost β do not use NetBIOS name resolver and connect directly to host, which can be either a valid DNS name or an IP address.-Llocale β use locale for lower/upper case conversion routines. set the locale for case conversion. by default,mount_smbfstries to use an environment variableLC_*to determine it.-Mcrights:srights β assign access rights to the newly created connection.-Nβ do not ask for a password. at run time,mount_smbfsreads the~/.nsmbrcfile for additional configuration parameters and a password. if no password is found,mount_smbfsprompts for it.-Ocowner:cgroup/sowner:sgroup β assign owner/group attributes to the newly created connection.-Rretrycount β how many retries should be done before the SMB requester decides to drop the connection. default is4.-Ttimeout β timeout in seconds for each request. default is15.-Uusername β username to authenticate with.-Wworkgroup β this option specifies the workgroup to be used in the authentication request.-ccase β set a case option which affects name representation. case can be one of the following:lβ all existing file names are converted to lower case. newly created file gets a lower case.uβ all existing file names are converted to upper case. newly created file gets an upper case.
-fmode,-dmode β specify permissions that should be assigned to files and directories. the values must be specified as octal numbers. default value for the file mode is taken from mount point, default value for the directory mode adds execute permission where the file mode gives read permission.
note that these permissions can differ from the rights granted by SMB server. π
-uuid,-ggid β user ID and group ID assigned to files. the default are owner and group IDs from the directory where the volume is mounted.//user@server[:port1[:port2]]/shareβ themount_smbfscommand 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. optional port1 and port2 arguments can be used to override default values of port numbers used by communication protocols. for SMB over NetBIOS default value for port1 are139, and port2 are137.- node β path to mount point.
π FILES π
~/.nsmbrcβ keeps user-specific static parameters for connections and other information. see/usr/share/examples/smbfs/dot.nsmbrcfor details./etc/nsmb.confβ keeps system-wide static parameters for connections and other information.
π EXAMPLES π
the following example illustrates how to connect to SMB server "SAMBA" as user "GUEST", and mount shares "PUBLIC" and "TMP":
mount_smbfs -I samba.mydomain.com //guest@samba/public /smb/public
mount_smbfs -I 192.168.20.3 -E koi8-r:cp866 //guest@samba/tmp /smb/tmp
it is also possible to use fstab(5) for smbfs mounts (the example below does not prompt for a password):
//guest@samba/public /smb/public smbfs rw,noauto,-N 0 0
π SEE ALSO π
other resources:
- chapter dedicated to Samba configuration in the FreeBSD Handbook:
https://www.freebsd.org/doc/handbook/network-samba.html
π STANDARDS π
mount_smbfs offers support for SMB/CIFS/SMB1. it does not support newer versions of the protocol like SMB2 and SMB3. SMB2 and SMB3 are supported by software available in the ports(7) collection.
the list of supported SMB servers includes:
- Samba
- Windows 95/98/ME/2000/NT4.0 (SPs 4, 5, 6)
- IBM LanManager
- NetApp
β HISTORY β
SMB/CIFS protocol and SMB/CIFS file system implementation first appeared in FreeBSD 4.5.
π§ AUTHORS π§
Boris Popov <bp@butya.kz>, β¨bp@FreeBSD.orgβ©
π BUGS π
please report bugs to the author.
and that's the whole page, bestie π«Ά β this one came from Debian and it's dated November 1, 2018, so likeβ¦ vintage but still iconic π β¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms