← 返回命令列表

Linux command

mount.smb3 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Mount SMB3 share

sudo mount.smb3 -o username=[user] //[server]/[share] [/mnt/point]

Example

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]

说明

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.

参数

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.

FAQ

What is the mount.smb3 command used for?

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.

How do I run a basic mount.smb3 example?

Run `sudo mount.smb3 -o username=[user] //[server]/[share] [/mnt/point]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does username=_arg_ do in mount.smb3?

Username for authentication. Defaults to the USER environment variable.