MASKTEST(1)

✨ MASKTEST ✨ (section 1 of the manual, bestie)

okay so this is the manual page for masktest πŸ’… it lives in the Test Suite corner of the manual, and it's genuinely one of the most unhinged little tools in the Samba toolbox. buckle up πŸŽ€


🌸 NAME 🌸

masktest β€” find differences in wildcard matching between Samba's implementation and that of a remote server. yes that's the whole job. it's giving "spot the difference" but for globbing πŸ¦‹


⭐ SYNOPSIS ⭐

masktest {//server/share} [-U user%pass] [-d debuglevel] [-W workgroup]
         [-n numloops] [-s seed] [-a] [-E] [-M max protocol]
         [-f filechars] [-m maskchars] [-v]

like, you point it at a share, hand it some flags, and it goes to work πŸ”₯


πŸ’– DESCRIPTION πŸ’–

so masktest is a utility for detecting differences in behaviour between Samba's own implementation and that of a remote server. that's the whole vibe. it will run generate random filenames/masks and check if these match the same files they do on the remote file as they do on the local server. and then β€” the moment of truth β€” it will display any differences it finds. πŸ‘‘

this utility is used by the Samba team to find differences in behaviour between Samba and Windows servers. so basically the Samba girlies use it to catch Windows being Windows. iconic behaviour, honestly πŸ’…


✨ OPTIONS ✨

  • -U user%pass β€” specify the user and password to use when logging on on the shares. and get this, you can drop this parameter twice (once for the first server, once for the second) β€” because two servers, two logins, two whole personalities 🫢
  • -s seed β€” seed the random number generator with the specified value. deterministic chaos, we love to see it 🌈
  • -n numops β€” set the number of operations to perform. how many rounds are we doing, bestie?
  • -a β€” print the operations that are performed. it's giving narrator mode, no secrets here πŸ‘€
  • -M max_protocol β€” maximum protocol to use.
  • -f β€” specify characters that can be used when generating file names. Default: abcdefghijklm. (thirteen little letters, they're the whole alphabet of this party πŸ“)
  • -E β€” abort when difference in behaviour is found. dramatic exit, but make it a feature πŸ’€
  • -m maskchars β€” specify characters used for wildcards. the * and ? of it all, fr fr
  • -v β€” be verbose. give me ALL the tea β˜•

πŸ¦‹ VERSION πŸ¦‹

this man page is correct for version 4.0 of the Samba suite. periodt.


πŸ’œ SEE ALSO πŸ’œ

Samba β€” yeah, the whole suite, go read about it ✨


πŸŽ€ AUTHOR πŸŽ€

this utility is part of the Samba[1] suite, which is developed by the global Samba Team[2]. (yes, [1] and [2] are real footnote numbers, keep scrolling 🌸)

masktest was written by Andrew Tridgell.

this manpage was written by Jelmer Vernooij. absolute legends, both of them πŸ‘‘


πŸ“ NOTES πŸ“

  1. Samba http://www.samba.org/
  2. Samba Team http://www.samba.org/samba/team/

and that's the whole page bestie!! πŸ¦„ this was Samba 4.0, dated 09/09/2026, and the file itself answers to the name MASKTEST(1). go forth and diff some wildcards, mwah πŸ’–βœ¨

πŸ“¦ where this page comes from