↑ ↓ select, Enter open, Esc close

Find files with the wrong owner in a webspace

Adjust the values, the command updates live
root@server
find /var/www/vhosts/example.com/httpdocs ! -user webuser -ls

Shows every file and folder whose owner is not the given user. In a Plesk webspace, almost everything should belong to the subscription user. Matches owned by root typically appear when files were extracted or copied as root, or when WP-CLI was run with --allow-root.

Note: On Plesk, the document root itself usually belongs to the group psaserv, but it only shows up here if its owner differs.

Also searched as

  • wordpress cannot write file permissions
  • files owned by root in httpdocs
  • wrong file owner in webspace
  • plugin update fails permissions

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.