Hands-on task
Wiki permissions after an FTP upload
The wiki was uploaded to /var/www/wiki over FTP, and the permissions came out random: the Site tab above the terminal shows 403 Forbidden instead of the wiki. Fix the permissions recursively: all directories — 750, all files — 640 (other users get no access). nginx runs as www-data and reads the wiki through the group: files are owned by root with group www-data — don't change that. Reload the Site tab — the wiki should open.
- find
- -exec
- chmod
- directory and file permissions
- recursive traversal