FSIRAND(8)
β¨ FSIRAND(8) β bestie edition β¨
okay so you know how NFS filehandles are basically a thing people could guess at? π Yeah. Not on my watch. This is the fsirand utility from the System Manager's Manual, and she is here to randomize your inode generation numbers and make you un-guessable. Let's get into it π
πΈ NAME πΈ
fsirand β randomize inode generation numbers. That's it. That's the whole vibe. β¨
π SYNOPSIS π
fsirand [-b] [-f] [-p] special [special ...]
Like, you can pass her multiple special devices at once. She's an overachiever. π«Ά
π¦ DESCRIPTION π¦
So, fsirand installs random generation numbers on all the inodes for each file system you specify on the command line via special. Every single one. No cap. π
Why do you care? Because this increases the security of NFS-exported file systems by making it difficult to ``guess'' filehandles. That's it β that's the whole point. She's out here making you unguessable. π
Note:newfs(8)now does the equivalent offsiranditself, so it is no longer necessary to runfsirandby hand on a new file system. She's only used to re-randomize or report on an existing file system now. Glow-up era. π
fr fr, listen up: the fsirand utility should only be used on an unmounted file system that has been checked with fsck(8), or a file system that is mounted read-only. Read that again. β οΈ
She may be used on the root file system in single-user mode, but the system should be rebooted via ``reboot -n'' afterwards. Not optional. Do it. π
π OPTIONS π
The available options are as follows β pick your fighter:
-bβ Use the default block size (usually512bytes) instead of the value gleaned from the disklabel. Classic. Simple. Iconic. π-fβ Forcefsirandto run even if the file system onspecialis not marked as clean. Bold. Risky. She said "whatever" and did it anyway. π-pβ Print the current generation numbers for all inodes instead of generating new ones. Nosy bestie mode, just peeking, not touching. π
π₯ SEE ALSO π₯
iykyk π
π HISTORY π
- The
fsirandutility appeared inSunOS 3.x. Vintage, lowkey. - This version of
fsirandfirst appeared inOpenBSD 2.1. - A FreeBSD version first appeared in
FreeBSD 2.2.5.
She's been around. Respect her. πΈ
π AUTHORS π
Todd C. Miller <Todd.Miller@courtesan.com>
The main character who made her. We stan. π«Ά
β οΈ CAVEATS β οΈ
Since fsirand allocates enough memory to hold all the inodes in a given cylinder group, it may use a large amount of memory for large disks with few cylinder groups. π Like, she will EAT your RAM for breakfast on a big disk with few cylinder groups. Not a drill. Fair warning. π¨
debian gang represent π β this page is from January 25, 1997 and it says FSIRAND(8) at the bottom, so like, a lil vintage moment for you bestie. mwah π β¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms