find / -xdev -type f -perm -002 -ls

Category: Security & Hardening

find / -xdev -type f -perm -002 -ls

Find world-writable files

Finds files any user can write to, which attackers can modify to plant malicious content. The -002 permission mask matches other-writable files. Audit the results and tighten permissions with chmod o-w where appropriate.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.