🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Linux Beginner

What is Chown?

A command to change the owner and group of files and directories in Linux.

Chown changes file ownership. Usage: chown user:group file, chown user file (owner only), chown :group file (group only). The -R flag applies recursively to directories.

Ownership determines which permission set (owner, group, others) applies to a user. Web servers often require specific ownership (e.g., chown -R www-data:www-data /var/www) for proper file access.