mount.smb3
mount SMB3 network shares
TLDR
This command is an alias of mount.cifs limited to the SMB3 filesystem.Mount SMB3 share with username
$ sudo mount.smb3 -o username=[user] //[server]/[share] [/mnt/point]
Mount as guest user$ sudo mount.smb3 -o guest //[server]/[share] [/mnt/point]
Mount with credentials file$ sudo mount.smb3 -o credentials=[/etc/samba/creds] //[server]/[share] [/mnt/point]
Mount with specific permissions$ sudo mount.smb3 -o username=[user],uid=[1000],gid=[1000],file_mode=[0644],dir_mode=[0755] //[server]/[share] [/mnt/point]
Mount with encryption$ sudo mount.smb3 -o username=[user],seal //[server]/[share] [/mnt/point]
SYNOPSIS
mount.smb3 //server/share mount-point [-o options]
DESCRIPTION
mount.smb3 mounts SMB3 network shares to local directories. It is a symbolic link to mount.cifs that is limited to the SMB3 filesystem. It can also be invoked via mount -t smb3.For older SMB versions, use mount.cifs with the vers= option instead.
PARAMETERS
username=arg
Username for authentication. Defaults to the USER environment variable.password=arg
Password for authentication. Using a credentials file is more secure.credentials=filename
File containing username, password, and optionally domain.domain=arg
Workgroup or domain for authentication.guest
Connect without a password.sec=mode
Security mode (krb5, krb5i, ntlmv2, ntlmv2i, ntlmssp, ntlmsspi, none).uid=arg
Owner UID for files on the mounted share.gid=arg
Owner GID for files on the mounted share.file_mode=mode
Default file permissions (octal).dir_mode=mode
Default directory permissions (octal).seal
Enable SMB3 encryption for all data.vers=version
SMB protocol version (3.0, 3.02, 3.1.1).cache=mode
Cache mode (none, strict, loose).ro
Mount read-only.rw
Mount read-write.multiuser
Allow different users to access the mount with individual credentials.nounix
Disable Unix Extensions.
INSTALL
sudo apt install cifs-utils
sudo dnf install cifs-utils
sudo pacman -S cifs-utils
sudo apk add cifs-utils
sudo zypper install cifs-utils
nix profile install nixpkgs#cifs-utils
CAVEATS
Requires the cifs-utils package. Passwords on the command line are visible in process listings; use a credentials file instead. Kerberos authentication requires a valid keytab or ticket.
SEE ALSO
mount.cifs(8), mount(8), umount(8), smbclient(1), fstab(5)