/go/fix puts file ownership and permissions back to what GoAdmio expects. For each account it: It then fixes the server-wide folders that GoAdmio uses and runs session. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Fix one account
/go/fix example.com
# Fix every account
/go/fix all
Arguments
| Argument | Required | Default | Notes |
|---|---|---|---|
[domain|all] |
No | all |
The account’s primary domain, or all. |
[mode] |
No | The account’s saved mode | 777, 755, or 555. It is stored in the panel, so it stays in effect for later runs. |
The command has no --option flags.
Examples
# Fix one account with its saved mode
/go/fix example.com
# Set an account back to the normal mode
/go/fix example.com 755
# Make one account read-only
/go/fix example.com 555
# Fix every account
/go/fix all
Output
| Outcome | What you get |
|---|---|
| Account fixed | Checking <domain> (<username>) [<mode>]... |
| FTP account fixed | Checking FTP <user> (Directory: <directory>)... |
| Account folder not found | FIX: Domain Directory /home/<name> not Exists |
Accounts without a www folder are skipped without a message. The Checking lines end with spaces so that they overwrite a previous line in a terminal. The exit code is always 0.
Logging
Every run is appended to /var/log/go/fix.log.
See the full reference at /go/fix and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
