5 -----------------------------------------------------------------------------------------------------
6 Userspace helper to display SMB-specific file information for the Linux SMB client file system (CIFS)
7 -----------------------------------------------------------------------------------------------------
14 smbinfo [-v] [-h] [-V] {command} {file system object}
20 This tool is part of the cifs-utils suite.
22 `smbinfo` is a userspace helper program for the Linux SMB
23 client file system (CIFS). It is intended to display SMB-specific file
24 informations such as Security Descriptors and Quota.
26 This tool works by making an CIFS_QUERY_INFO IOCTL call to the Linux
27 SMB client which in turn issues a SMB Query Info request and returns
28 the result. This differs from `getcifsacl` which uses extended file
36 Print version number and exit.
42 Print help explaining the command line options.
48 `fileaccessinfo`: Prints the FileAccessInformation class
50 `filealigninfo`: Prints the FileAlignmentInformation class
52 `fileallinfo`: Prints the FileAllInformation class
54 `filebasicinfo`: Prints the FileBasicInformation class
56 `fileeainfo`: Prints the FileEaInformation class
58 `filefsfullsizeinfo`: Prints the FileFsFullSizeInformation class
60 `fileinternalinfo`: Prints the FileInternalInformation class
62 `filemodeinfo`: Prints the FileModeInformation class
64 `filepositioninfo`: Prints the FilePositionInformation class
66 `filestandardinfo`: Prints the FileStandardInformation class
68 `fsctl-getobjid`: Prints the ObjectID
70 `getcompression`: Prints the compression setting for the file.
72 `setcompression -c <no|default|lznt1>`: Sets the compression setting for the file.
74 `list-snapshots`: Lists the previous versions of the volume that backs this file
76 `quota`: Print the quota for the volume in the form
84 `secdesc`: Print the security descriptor in the form
93 `keys`: Dump session id, encryption keys and decryption keys so that
94 the SMB3 traffic of this mount can be decryped e.g. via wireshark
101 Kernel support for smbinfo utilities requires the CIFS_QUERY_INFO
102 IOCTL which was initially introduced in the 4.20 kernel and is only
103 implemented for mount points using SMB2 or above (see mount.cifs(8)
110 mount.cifs(8), getcifsacl(1)
116 Ronnie Sahlberg wrote the smbinfo program.
118 The Linux CIFS Mailing list is the preferred place to ask questions
119 regarding these programs.