Set file owner and group.
Section: Permissions Ownership and ACLs
Change owner and group
bash
bash
chown deploy:www-data app.logExplanation
Common after copying files as root or changing deployment users.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Permissions Ownership and ACLs