Change folder ownership and permissions (chown / chmod) — by Lucian Adrian Grijincu on Ask Ubuntu
Shows how to make your user own a folder and everything inside it with chown -R, and optionally the group too. It's useful when files created with sudo have become unwritable.
Quick steps
- sudo chown -R $USER:$USER /path/to/folder
Paraphrased from the source. Menus can differ by version, so check the original for full details.
Source: Change folder ownership and permissions (chown / chmod) by Lucian Adrian Grijincu on Ask Ubuntu. Licence: CC BY-SA (Stack Exchange; version depends on post date).
- Source reviewed
- 2026-11-02
- Link checked
- Not yet
- Tested hands-on
- Not by Oddbyte.Me