2026-11-09 · By the The White Hat Bible editorial team
Predict, Then Observe: A Permissions Comparison in a Folder You Own
A small, owned test folder can teach you to write down what you expect a file's permissions to allow, then check the actual result and record any gap without inflating what that check proves.

Why Write the Prediction First
Before you run any command that reads permissions, write one sentence describing what you expect. The point is not to be right. The point is to make your reasoning visible so that a mismatch becomes information instead of a vague feeling of confusion. Linux file access permissions distinguish three parties, the file owner, the group and everyone else, and each has read, write and execute bits. Those bits mean different things for a regular file than for a directory. A file's read bit lets you read its contents, but a directory's read bit mainly lets you list names, while a directory's execute bit governs whether you can traverse into it. Those distinctions are exactly where predictions tend to go wrong, which is why they are worth writing down.
A Worked Example in a Folder You Own
Suppose you create a directory called permtest inside your home folder, add a plain text file called notes.txt, and make a note of the mode shown for the file. Your prediction might read: the owner should be able to read and write notes.txt, and the group and others should be able to read it but not write to it. Now you look at the output and find the mode is slightly different from what you expected, perhaps because your system's default umask removed a bit you assumed was present. Record both values side by side, then explain the gap in one sentence. This is a hypothetical example of the method, not a claim about how any particular system will behave. Your own results will depend on your umask, your group setup and your distribution.
A Small Reader Exercise
Create your own owned test folder, write a three-line prediction for one file and one directory, then compare each prediction to what you observe. For each line, mark it as matched, partly matched or mismatched, and write one reason you think the difference exists. Keep the test files inside the folder and avoid touching anything outside it. When you finish, remove the folder entirely so the exercise leaves no residue behind. Treat your conclusions as provisional: a single observation on one machine does not establish how permissions work everywhere, and it does not show that any system is secure.
Checklist and Limits
Before you close the session, confirm the following. Your test folder lives in your own home directory and holds only files you created. Your predictions were written before you looked. Each mismatch has a recorded explanation or an open question. You noted which system and user you tested under. You removed the test files and directory when finished. Remember the limitation that NIST's guidance on technical security testing makes clear: a technical check reports what it observed under specific conditions, and passing it does not guarantee that a system is comprehensively protected. Keep your notes in the lane of observation rather than conclusions about security.