smbinfo(1)
π smbinfo(1) β the manual, but make it make sense
okay so bestie, welcome to smbinfo(1), straight out of the General Commands Manual. Pull up a chair, grab a lil snack π, and let's get into it.
β¨ NAME β¨
smbinfo β a userspace helper that displays SMB-specific file information for the Linux SMB client file system (CIFS). yes that is the whole name, she's thorough π
π¦ SYNOPSIS π¦
smbinfo [-v] [-h] [-V] {command} {file system object}
that's it. that's the whole vibe check. a couple of flags, a command, and the file system object you're being nosy about. π
πΈ DESCRIPTION πΈ
okay so first things first: this tool is part of the cifs-utils suite. she's not a lone wolf, she comes with the whole friend group.
smbinfo is a userspace helper program for the Linux SMB client file system (CIFS). what she does is display SMB-specific file informations β iconic stuff like Security Descriptors and Quota. π
and the way it works is genuinely so cool: this tool makes a CIFS_QUERY_INFO IOCTL call to the Linux SMB client, which then issues a SMB Query Info request and hands back the result. no cap, that's the whole mechanism. π₯
and yes, before you ask β this is different from getcifsacl, because that one uses extended file attributes instead. two different girls, two different strategies. iykyk π
π OPTIONS π
-vβ print the version number and then exit. quick lil hello and she's out the door π«Ά-Vβ verbose output. she's gonna talk more. much more. (yes, lowercase-vis version and uppercase-Vis verbose β not me getting those mixed up, i literally would, be careful π)-hβ print help explaining the command line options. the classic "bestie explain urself" button π
π COMMAND π
okay here's the menu. pick your fighter β¨
fileaccessinfoβ prints theFileAccessInformationclassfilealigninfoβ prints theFileAlignmentInformationclassfileallinfoβ prints theFileAllInformationclassfilealternatenameinfoβ prints theFileAlternateNameInformationclassfilebasicinfoβ prints theFileBasicInformationclassfileeainfoβ prints theFileEaInformationclassfilefsfullsizeinfoβ prints theFileFsFullSizeInformationclassfileinternalinfoβ prints theFileInternalInformationclassfilemodeinfoβ prints theFileModeInformationclassfilenormalizednameinfoβ prints theFileNormalizedNameInformationclassfilepositioninfoβ prints theFilePositionInformationclassfilestandardinfoβ prints theFileStandardInformationclassfilestreaminfoβ prints theFileStreamInformationclassfilecompressioninfoβ prints theFileCompressionInformationclassfsctl-getobjidβ prints theObjectIDgetcompressionβ prints the compression setting for the file. ποΈsetcompression -c <no|default|lznt1>β sets the compression setting for the file. options areno,default, orlznt1β pick your poison πlist-snapshotsβ lists the previous versions of the volume that backs this file. the throwback machine π°οΈquotaβ print the quota for the volume, in the form:SID Length-Change Time-Quota Used-Quota Threshold-Quota Limit-SIDsecdescβ print the security descriptor, in the form:Revision-Control-Owner SID-Group SID-ACL-File types-File flagskeysβ dump session id, encryption keys and decryption keys so that the SMB3 traffic of this mount can be decryped e.g. viawireshark. requires root. π (and yes, the manpage really does say "decryped" β i'm not fixing her, she's perfect π)gettconinfoβ prints both theTCON IdandSession Idfor a cifs filenotifyβ query a directory for change notifications π
π§ NOTES π§
kernel support for smbinfo utilities requires the CIFS_QUERY_INFO IOCTL. that bad boy was initially introduced in the 4.20 kernel, and it's only implemented for mount points using SMB2 or above β see the mount.cifs(8) vers option if you need to check yours. β
so if you're on some ancient kernel or still rocking SMB1, this is gonna be giving nothing. check ur vers, bestie. π
π SEE ALSO π
go read those too, they're literally her cousins π«Ά
π AUTHOR π
Ronnie Sahlberg wrote the smbinfo program. absolute icon, no notes. π
and if you got questions about any of these programs, the Linux CIFS Mailing list is the preferred place to ask. that's where the girlies gather π
okay that's the whole page!! that was smbinfo(1) from the General Commands Manual, part of the cifs-utils suite β she's here, she's iconic, go query some info. slay β¨π
π¦
π¦ where this page comes from
- arch rolling: cifs-utils 7.9-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms