Skip to content

Change folder ownership and permissions (chown / chmod) — by Lucian Adrian Grijincu on Ask Ubuntu

beginnerforumCC BY-SA (Stack Exchange; version depends on post date)

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

  1. sudo chown -R $USER:$USER /path/to/folder

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full thread on askubuntu.com

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

chownchmodpermissionsownership

More in Community Answers (Stack Exchange)