chown: Change Owner — Change the owner (user and group) of a file or directory. chown changes who owns a file or folder. chown www-data:www-data storage makes the web server user and group the owner. -R applies it to everything inside. Ownership and permissions work together. A web application often needs to write to a few folders, such as cache, uploads and logs. The cleanest fix is to give the web server user ownership of exactly those folders, rather than opening up permissions for everyone.
Ownership problems are common with Docker. Files created inside a container may belong to root on your machine, and then your own editor cannot save them. Running the container as your own user ID, or setting the right user in the Dockerfile, avoids that. chown usually needs sudo, so double-check the path before running it recursively.
Use before running or suggesting shell commands with flags, especially destructive or broad ones (-f/--force, -r/-R recursive, -a/--all, -y/--yes, prune, --hard), and when a user asks what a flag means (-v, -q, -n/--dry-run, -h, -o, -p, -t, -u, -w, -x, -c, -i). Explains flags per tool and prefers dry runs and narrow scopes.
Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.
Use this skill before running, or recommending, any Docker command that deletes, wipes, resets, or otherwise irreversibly changes state — even if the user just says to "clean up", "clear the cache", "start fresh", "wipe everything", "nuke it", "reset", "force remove", or "tear down" Docker resources. Covers generic Docker CLI destructive operations not owned by a more specific skill — `docker rm`,