Change file owner and group quickly from the shell and verify results immediately. 28.02.2026 | reading time: 2 min Every file and directory on Linux carries an owner and a group; that controls who can read, write or execute it, and chown is the tool to change those owners directly from the shell. Hands-on: change an owner now Try this on a test file to see how ownership changes look in practice: ```bash $ ls -l report.txt -rw-r--r-- 1 bob staff 1024 Jan 1 12:00 report.txt $ sudo chown alice:devs report.txt $ ls -l report.txt -rw-r--r-- 1 alice devs 1024 Jan 1 12:00 report.txt ``` Options that you will use often Use `-R` to change a directory tree recursively, `-h` to affect symbolic links rather than their targets on platforms that support it, `--from=OLD` to only change when current owner matches OLD, and numeric `UID:GID` values when names are not available; remember that changing an owner normally requires root privileges, while ordinary users can usually change group to one they belong to. Real tasks and common patterns Combine `chown` with `find` or `xargs` to repair ownership across many files, use `--reference=REF` to clone ownership from a reference file, and prefer `chgrp` when you only need to change the group; be careful with recursive changes on system trees—one mistaken `chown -R /` can break services. Wrapping up and next steps Mastering `chown` means safer file management and fewer permission surprises; practice on nonproduction data, then explore automation with scripts and `find -exec` patterns to scale your fixes, and consider formal study such as CompTIA Linux+ or LPIC-1 with intensive exam preparation at bitsandbytes.academy to deepen your skills. Join Bits & Bytes Academy First class LINUX exam preparation. filesystem utilities security scripting troubleshooting