Browse Linux & CLI Topics ▼

Ownership & chown

📂 Users, Groups & Permissions 📘 Lesson 12 of 21

Reassign user and group ownership of files and directories using chown and chgrp.

Ownership & chown is an essential topic in LINUX.

Overview

Mastering ownership & chown provides the core mental model and practical skills needed for real-world software engineering workflows.

# Change owner to www-data and group to www-data recursively
sudo chown -R www-data:www-data /var/www/html

Key Concepts

  • Understand the fundamental syntax, commands, and architecture.
  • Learn standard conventions, safety guardrails, and common pitfalls.
  • Apply practical idioms directly in production environments.

[!TIP] Practice these core patterns thoroughly. Next, proceed to linux-sudo-privileges.

Test your understanding of Ownership & chown

Quick interactive practice questions with instant feedback.

Take Quiz →