0% found this document useful (0 votes)
99 views2 pages

Smbinfo

smbinfo is a userspace helper program for the Linux SMB client file system that displays SMB-specific file information such as security descriptors and quotas. It works by making a CIFS_QUERY_INFO IOCTL call to the Linux SMB client to issue a SMB Query Info request and return the result. It can display information for various file classes and supports commands to view file access, alignment, and standard information as well as file system control settings, snapshots, quotas, and security descriptors. Kernel support requires the CIFS_QUERY_INFO IOCTL introduced in Linux kernel 4.20.

Uploaded by

bubba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
99 views2 pages

Smbinfo

smbinfo is a userspace helper program for the Linux SMB client file system that displays SMB-specific file information such as security descriptors and quotas. It works by making a CIFS_QUERY_INFO IOCTL call to the Linux SMB client to issue a SMB Query Info request and return the result. It can display information for various file classes and supports commands to view file access, alignment, and standard information as well as file system control settings, snapshots, quotas, and security descriptors. Kernel support requires the CIFS_QUERY_INFO IOCTL introduced in Linux kernel 4.20.

Uploaded by

bubba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SMBINFO(1) SMBINFO(1)

NAME
smbinfo - Userspace helper to display SMB-specific file information for the Linux SMB client file system
(CIFS)
SYNOPSIS
smbinfo [-v] [-h] [-V] {command} {file system object}
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 is-
sues a SMB Query Info request and returns the result. This differs from getcifsacl which uses extended file
attributes.
OPTIONS
-v Print version number and exit.
-V Verbose output.
-h Print help explaining the command line options.
COMMAND
fileaccessinfo: Prints the FileAccessInformation class

filealigninfo: Prints the FileAlignmentInformation class

fileallinfo: Prints the FileAllInformation 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

filepositioninfo: Prints the FilePositionInformation class

filestandardinfo: Prints the FileStandardInformation class

fsctl-getobjid: Prints the ObjectID

getcompression: Prints the compression setting for the file.

setcompression -c <no|default|lznt1>: 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

1
SMBINFO(1) SMBINFO(1)

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).
NOTES
Kernel support for smbinfo utilities requires the CIFS_QUERY_INFO IOCTL which was initially intro-
duced in the 4.20 kernel and is only implemented for mount points using SMB2 or above (see mount.cifs(8)
vers option).
SEE ALSO
mount.cifs(8), getcifsacl(1)
AUTHOR
Ronnie Sahlberg wrote the smbinfo program.

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

You might also like