1SMBINFO(1)                                                          SMBINFO(1)
2
3
4

NAME

6       smbinfo - Userspace helper to display SMB-specific file information for
7       the Linux SMB client file system (CIFS)
8

SYNOPSIS

10          smbinfo [-v] [-h] [-V] {command} {file system object}
11

DESCRIPTION

13       This tool is part of the cifs-utils suite.
14
15       smbinfo is a userspace helper program for the  Linux  SMB  client  file
16       system (CIFS). It is intended to display SMB-specific file informations
17       such as Security Descriptors and Quota.
18
19       This tool works by making an CIFS_QUERY_INFO IOCTL call  to  the  Linux
20       SMB  client  which  in turn issues a SMB Query Info request and returns
21       the result. This differs from getcifsacl which uses extended  file  at‐
22       tributes.
23

OPTIONS

25       -v     Print version number and exit.
26
27       -V     Verbose output.
28
29       -h     Print help explaining the command line options.
30

COMMAND

32       fileaccessinfo: Prints the FileAccessInformation class
33
34       filealigninfo: Prints the FileAlignmentInformation class
35
36       fileallinfo: Prints the FileAllInformation class
37
38       filebasicinfo: Prints the FileBasicInformation class
39
40       fileeainfo: Prints the FileEaInformation class
41
42       filefsfullsizeinfo: Prints the FileFsFullSizeInformation class
43
44       fileinternalinfo: Prints the FileInternalInformation class
45
46       filemodeinfo: Prints the FileModeInformation class
47
48       filepositioninfo: Prints the FilePositionInformation class
49
50       filestandardinfo: Prints the FileStandardInformation class
51
52       filestreaminfo: Prints the FileStreamInformation class
53
54       fsctl-getobjid: Prints the ObjectID
55
56       getcompression: Prints the compression setting for the file.
57
58       setcompression  -c <no|default|lznt1>: Sets the compression setting for
59       the file.
60
61       list-snapshots: Lists the previous versions of the  volume  that  backs
62       this file
63
64       quota: Print the quota for the volume in the form - SID Length - Change
65       Time - Quota Used - Quota Threshold - Quota Limit - SID
66
67       secdesc: Print the security descriptor in the form - Revision - Control
68       - Owner SID - Group SID - ACL - File types - File flags
69
70       keys:  Dump session id, encryption keys and decryption keys so that the
71       SMB3 traffic of this mount can be decryped e.g. via wireshark (requires
72       root).
73

NOTES

75       Kernel support for smbinfo utilities requires the CIFS_QUERY_INFO IOCTL
76       which was initially introduced in the 4.20 kernel and  is  only  imple‐
77       mented for mount points using SMB2 or above (see mount.cifs(8) vers op‐
78       tion).
79

SEE ALSO

81       mount.cifs(8), getcifsacl(1)
82

AUTHOR

84       Ronnie Sahlberg wrote the smbinfo program.
85
86       The Linux CIFS Mailing list is the preferred place to ask questions re‐
87       garding these programs.
88
89
90
91
92                                                                    SMBINFO(1)
Impressum