mount.cifs, mount.smb3(8) System Manager's Manual mount.cifs, mount.smb3(8) (NAME) mount.cifs - cifs smb3 (SYNOPSIS) mount.cifs {service} {mount-point} [-o options] cifs-utils . mount.cifs CIFS SMB3 (mount) . "-t cifs" mount(8) . cifs . SMB3 CIFS (SMB) Azure ( ) (NAS) Samba . mount.smb3 SMB3 . "-t smb3" mount(8) . smb3 4.18 . mount.cifs smb3 . mount.cifs UNC ( ) service ( //server/share "server" IP "share" ) mount-point . mount.cifs key=value . cifs (cifs.ko) . cifs cifs vfs (kernel log) . mount.cifs cifs vfs cifsd . ( umount) . mount.cifs -V cifs mount . modinfo cifs cifs . (OPTIONS) username=arg|user=arg . USER . mount.cifs user%password workgroup/user workgroup/user%password workgroup . . password= domain= . cifs user= mount (non-superuser) . username= . password=arg|pass=arg CIFS . PASSWD . mount mount.cifs guest . ( ',') . PASSWD (credentials) . password2=arg|pass2=arg . PASSWD2 . password2 mount mount.cifs password2 . password2 ( ',') . password2 PASSWD2 ( ) . credentials=filename|cred=filename / / workgroup . : username=value password=value password2=value domain=value /etc/fstab . . uid=arg (uid) . uid . uid 0 . mount.cifs uid 1.10 . . forceuid uid uid= . . cruid=arg (uid) (credentials cache) . sec=krb5 . uid . upcall . gid=arg (gid) . gid . gid 0 . mount.cifs gid 1.10 . . forcegid gid gid= . . idsfromsid uid/gid SID . . port=arg CIFS . . . . 445 139 . 445 139 . . netbiosname=arg 139 RFC1001 netbios netbios . servern=arg netbiosname netbios . ( OS/2 Windows 98 Windows ME) 139 . 15 . file_mode=arg CIFS . dir_mode=arg CIFS . ip=arg|addr=arg IP . UNC . domain=arg|dom=arg|workgroup=arg (workgroup) . . domainauto . domainauto NTLM domain NTLM . 2.6.36 . guest . iocharset (Charset) . . iocharset nls_default . . ro . rw . setuids CIFS uid gid (create, mkdir, mknod). CIFS uid gid uid gid ( ) uid . nosetuids uid gid (create, mkdir, mknod) uid gid ( uid ). uid gid ( ) . CIFS uid gid uid ( gid) uid ( gid) . perm ( vfs_permission uid gid ). ACL . . noperm . . CIFS UID/GID . ACL ( ACL ) . dynperm . ( ) . . cache=arg (Cache mode). . : o none - o strict - CIFS/SMB2 o loose - 3.7 loose . 3.7 strict . nostrictsync fsync() (flush) . . + fsync . . handlecache () SMB2 ( ) statfs(2) . ( ) (handle) . nohandlecache . max_cached_dirs=arg . (lease) . max_cached_dirs 16 0 2^32 - 1 . handletimeout=arg ( ) (failover) . resilienthandles persistenthandles ( ) ( 120 ) . rwpidforward pid . wine(1) brlock . mapchars ( pipe ) ( 0xF000) CIFS Services for Unix . Samba ( ). . mapchars . nomapchars () . mapposix mapchars "Services For Mac" . . intr . nointr () . hard cifs (hang) . soft () cifs . noacl POSIX ACL . CIFS POSIX ACL Samba 3.0.10 (getfacl, setfacl). POSIX ACL CONFIG_CIFS_XATTR CONFIG_CIFS_POSIX CIFS cifs . POSIX ACL noacl . cifsacl CIFS/NTFS ACL / SID / UID GID (Security Descriptors) . CIFS/NTFS ACL SID/UID/GID . backupuid=arg (backup intent) . . . backupgid=arg . . . nocase ( ). ignorecase nocase. sec=arg . : o none - ( ) o krb5 - 5 o krb5i - o ntlm - NTLM o ntlmi - NTLM o ntlmv2 - NTLMv2 o ntlmv2i - NTLMv2 o ntlmssp - NTLMv2 NTLMSSP o ntlmsspi - NTLMv2 NTLMSSP 3.8 sec=ntlm . 3.8 sec=ntlmssp . . /proc/fs/cifs/SecurityFlags . seal SMB. AES-128-CCM . SMB3 ( vers ). esize=arg ( ) . 1 . . esize=0 8192 130048 16384 . rdma SMB Direct RDMA. SMB3 ( vers ). resilienthandles (resilient handles). . SMB2.1 ( vers ). noresilienthandles () . persistenthandles (persistent handles). . . SMB3 ( vers ). nopersistenthandles () . snapshot=time (snapshot) . time ( 100 1 1601 GMT @GMT-2019.03.27-20.52.19). 4.19 . nobrl (byte range lock) . cifs ( cifs ). forcemandatorylock POSIX . cifs . locallease (leases) . nolease lease/oplock . IO ( actimeo ). SMB2 ( vers ). sfu CIFS SMB3 fifo Services for Unix (SFU) . 10-12 SETFILEBITS ( SFU ) . 9 (ACL) . [: 1.39 CIFS VFS . SFU 1.40 CIFS VFS .] mfsymlinks Minshall+French ( ). sfu . Minshall+French CIFS . echo_interval=n echo . . n echo . echo_interval . 60 . 1 600 . serverino ( ) . (hardlinked) ( ) ( ) ( ). CIFS Windows 2000 ( ). . . noserverino . . posix|unix|linux () . CIFS (vers=1.0) SMB3.1.1 (vers=3.1.1) . noposix|nounix|nolinux . . POSIX acl POSIX POSIX uid/gid/mode . . . nouser_xattr getfattr/setfattr / xattr . xattr . nodfs (DFS) . / . noautotune recv/send . nosharesock . . TCP . noblocksend ( MSG_DONTWAIT). rsize=bytes . SMB3 8 . 4 . 4.20 1 . SMB2.1 64 . wsize=bytes . SMB3 8 . 4 . 4.20 1 . SMB2.1 64 . bsize=bytes (1 ) SMB3 ( 5.1 ). 5.1 1 16 ( ) cp scp ( I/O ) . bsize 16 16 . max_credits=n SMB2 . 32000 . 20 60000 . fsc FS-Cache CIFS. / ( ) . . - (read-once). / . CIFS . NOTE: CONFIG_CIFS_FSCACHE . cachefilesd . multiuser . CIFS ( ) . . . multiuser sec= . noperm . uid= gid= . actimeo=arg ( ) CIFS . . 1 . . . . . actimeo 0 2^30 * HZ ( ) . 0 . acregmax=arg ( ) CIFS . acregmax actimeo actimeo . acdirmax=arg ( ) CIFS . acdirmax actimeo actimeo . upcall_target=arg upcall SMB . : - mount - upcall . - app - upcall (). app . Kubernetes . . app upcall . mount . multichannel multichannel () . Multichannel SMB3 SMB SMB . . multichannel . max_channels . max_channels=arg multichannel . max_channels 16 . multichannel . max_channels multichannel 2 . closetimeo=arg ( ) CIFS SMB3 (handle lease) . closetimeo 1 0 2^30 * HZ . noposixpaths '/' . posix . posixpaths noposixpaths. compress (EXPERIMENTAL FEATURE) SMB 3.1.1 . compress vers 3.1.1 . vers=arg SMB. : o 1.0 - CIFS/SMBv1. o 2.0 - SMBv2.002. Windows Vista Service Pack 1 Windows Server 2008 . Windows Vista (2.000) . o 2.1 - SMBv2.1 Microsoft Windows 7 Windows Server 2008R2 . o 3.0 - SMBv3.0 Microsoft Windows 8 Windows Server 2012 . o 3.02 3.0.2 - SMBv3.0.2 Microsoft Windows 8.1 Windows Server 2012R2 . o 3.1.1 3.11 - SMBv3.1.1 Microsoft Windows 10 Windows Server 2016 . o 3 - SMBv3.0 . o default - SMB2+ . vers=default . Dialect /proc/fs/cifs/DebugData . . v4.13.5 2.1 . v4.13 1.0 . v4.13 v4.13.5 3.0 . sloppy . --verbose . -o . : mount -t cifs //server/share /mnt --verbose -o user=username (SERVICE FORMATTING AND DELIMITERS) (/) . " " (\) . POSIX . mount.cifs sharename . (INODE NUMBERS) POSIX . serverino . UniqueID . UniqueID . UniqueID . LFS ( ) EOVERFLOW glibc . LFS ( -D_FILE_OFFSET_BITS=64) . noserverino . . (CACHE COHERENCY) CIFS NFS . . . CIFS ( ) (oplock) (lease) . . (call back) . cifs pagecache . / (I/O) pagecache (page-aligned) . . cache=none . . cache=strict CIFS/SMB2 . oplock . oplock . . oplock oplock (push) . cache=loose . pagecache . oplock lease . write . oplock . NFSv2/3 CIFS . LastWriteTime "" . cache=loose . cache=strict . CIFS/SMB2 . pagecache mmap . mmap msync() close(). 3.7 loose . 3.7 strict . CIFS/NTFS SID/UID/GID (CIFS/NTFS ACL, SID/UID/GID MAPPING, SECURITY DESCRIPTORS) (Security Descriptors) CIFS/NTFS ACL UID GID POSIX ACL . CIFS . cifs CONFIG_CIFS_XATTR CONFIG_CIFS_ACL . 5.3 CONFIG_CIFS_ACL CIFS/NTFS ACL cifs . : cat /lib/modules/$(uname -r)/build/.config CONFIG_IKCONFIG_PROC : zcat /proc/config.gz CIFS/NTFS ACL TechNet : SID / UID GID : o upcall cifs.idmap request-key.conf(5) o winbind sssd nsswitch.conf(5) cifs.idmap(8) winbindd(8) sssd(8) . system.cifs_acl . ("raw" blobs) getcifsacl(1) setcifsacl(1) . : o . o CIFS/NTFS ACL POSIX ACL . o upcall cifs.idmap winbind sssd . uid gid uid / gid . (ACCESSING FILES WITH BACKUP INTENT) . ACL . . (backup intent). Backup Operators . FILE_OPEN_FOR_BACKUP_INTENT CreateOptions . testuser : REVISION:0x1 CONTROL:0x9404 OWNER:Administrator GROUP:Domain Users ACL:Administrator:ALLOWED/0x0/FULL testuser Backup Operators . . . backupuid . backupgid . backupuid backupgid . . (FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS) CIFS (mode) . uid= gid= file_mode dir_mode . chmod/chown . uid gid mode . CIFS . uid gid forceuid forcegid . (mode) . forceuid forcegid . dynperm . . ( ). . noperm . . . (ENVIRONMENT VARIABLES) USER . username%password . PASSWD PASSWD2 . PASSWD_FILE PASSWD2_FILE password password2 . . (NOTES) (root) setuid noexec nosuid . setuid mount chdir() . samba smbclient(8) smb.conf . mount.cifs smb.conf . (CONFIGURATION) cifs vfs /proc . /proc/fs/cifs . cifs vfs ( cifs.ko) . modinfo cifs.ko ( ) cifs . fs/cifs/README . (trace-cmd) SMB3 : /sys/kernel/debug/tracing/events/cifs (SECURITY) SMB2.1 ( SMB3.1.1) SMB1 . CIFS (SMB1 vers=1.0) . CIFS (SMB1) modprobe cifs disable_legacy_dialects=y . (BUGS) URL CIFS . (credentials) . . (: mount.cifs ( mount.cifs -V ) ( /proc/version ) ). (VERSION) 2.18 cifs vfs ( 5.0) . (SEE ALSO) cifs.upcall(8), getcifsacl(1), setcifsacl(1) Documentation/filesystems/cifs.txt fs/cifs/README . (AUTHOR) Steve French cifs vfs Steve French . cifs-utils Pavel Shilovsky . Linux CIFS Mailing list . mount.cifs, mount.smb3(8)