smbinfo(1) General Commands Manual smbinfo(1)

# [Name](#Name)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

This tool is part of the cifs-utils suite.

*smbinfo* is a userspace helper program for the Linux SMB client file system (CIFS). It is intended to display SMB-specific file informations such as Security Descriptors and Quota.

This tool works by making an CIFS\_QUERY\_INFO IOCTL call to the Linux SMB client which in turn issues a SMB Query Info request and returns the result. This differs from *getcifsacl* which uses extended file attributes.

# [OPTIONS](#OPTIONS)

[**-v**](#v)

Print version number and exit.

[**-V**](#V)

Verbose output.

[**-h**](#h)

Print help explaining the command line options.

# [COMMAND](#COMMAND)

*fileaccessinfo*: Prints the FileAccessInformation class

*filealigninfo*: Prints the FileAlignmentInformation class

*fileallinfo*: Prints the FileAllInformation class

*filealternatenameinfo*: Prints the FileAlternateNameInformation class

*filebasicinfo*: Prints the FileBasicInformation class

*fileeainfo*: Prints the FileEaInformation class

*filefsfullsizeinfo*: Prints the FileFsFullSizeInformation class

*fileinternalinfo*: Prints the FileInternalInformation class

*filemodeinfo*: Prints the FileModeInformation class

*filenormalizednameinfo*: Prints the FileNormalizedNameInformation class

*filepositioninfo*: Prints the FilePositionInformation class

*filestandardinfo*: Prints the FileStandardInformation class

*filestreaminfo*: Prints the FileStreamInformation class

*filecompressioninfo*: Prints the FileCompressionInformation class

*fsctl-getobjid*: Prints the ObjectID

*getcompression*: Prints the compression setting for the file.

*setcompression -c &lt;no|default|lznt1&gt;*: Sets the compression setting for the file.

*list-snapshots*: Lists the previous versions of the volume that backs this file

*quota*: Print the quota for the volume in the form - SID Length - Change Time - Quota Used - Quota Threshold - Quota Limit - SID

*secdesc*: Print the security descriptor in the form - Revision - Control - Owner SID - Group SID - ACL - File types - File flags

*keys*: Dump session id, encryption keys and decryption keys so that the SMB3 traffic of this mount can be decryped e.g. via wireshark (requires root).

*gettconinfo*: Prints both the TCON Id and Session Id for a cifs file.

*notify*: Query a directory for change notifications.

# [NOTES](#NOTES)

Kernel support for smbinfo utilities requires the CIFS\_QUERY\_INFO IOCTL which was initially introduced in the 4.20 kernel and is only implemented for mount points using SMB2 or above (see [mount.cifs(8)](/man/os/cifs-utils/mount.cifs.8) *vers* option).

# [SEE ALSO](#SEE_ALSO)

[mount.cifs(8)](/man/os/cifs-utils/mount.cifs.8), [getcifsacl(1)](/man/os/cifs-utils/getcifsacl.1)

# [AUTHOR](#AUTHOR)

Ronnie Sahlberg wrote the smbinfo program.

The Linux CIFS Mailing list is the preferred place to ask questions regarding these programs.

---

Document: smbinfo(1) from cifs-utils 7.9-r0 (Chainguard OS)
Source: git://git.samba.org/cifs-utils.git
