Audit world-writable files in your home directory
List every file that any user on the system could modify.
01Command
$ find /home -xdev -type f -perm -0002 -ls 2>/dev/null02What it does
A world-writable file can be altered by any account on the machine, which turns a minor compromise into a full one — attackers love dropping into scripts and configs that others execute. -perm -0002 matches anything with the 'others write' bit, and -xdev keeps the search on one filesystem so it finishes fast. This mirrors the SUID audit but targets the opposite, and even more common, permission mistake.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- find(1) — Linux manual pageEvidence: The -perm -0002 test matches files that have the write bit for others set; -ls prints details of each match.
Last verified: 2026-09-18 · Category: Security & Privacy
06Related solutions
Generate a modern Ed25519 public/private key pair in ~/.ssh for authenticating to servers and Git platforms without passwords.
Add or remove read, write, and execute permission for the owner, group, or others using symbolic or octal modes.
Add a UFW rule to permit inbound traffic on a TCP or UDP port, such as SSH on port 22.