Modewise
Menu

The reader

Read a listing.

Paste the output of ls -la or stat. Each file comes back as three plain sentences, one per class, with any risk flagged, its reason given and the chmod fix written out. You run nothing here and Modewise runs nothing on your server.

From ls -la, ls -laR, stat, find . -ls or stat -c '%A %U %G %n' *, or just a mode such as 2775. Up to 2,000 files at a time.

Read it as

Read on this device. This page refuses every outside connection, so the text cannot be sent anywhere.

Getting a listing to paste

On the server, in a terminal or your host’s terminal page, go to the folder and print it:

cd ~/public_html
ls -la

For one file in full, stat config.php. For every file below a folder, find . -ls (it can be long; the reader takes up to 2,000 files). These commands only read; they change nothing.

What the reader looks for

Write access for everyone, full 777 access, setuid and setgid programs, files that usually hold passwords that every account can read, private keys and SSH files others can reach, backups in a web folder, and modes that do not do what they seem to. The guide lists every rule with its reason.

A + after the mode (an ACL) or a dot (SELinux) means more rules apply than the bits show; the reader says so where it sees one.