sudo and Who Owns a File

Every file has an owner and a group, and only root, the computer's administrator account, may change anything; sudo runs one command as root after asking for your password, and chown gives a file a new owner, so both are used rarely and on purpose.

Updated

Cheat sheet for the lesson sudo and Who Owns a File: Every file has an owner and a group, and only root, the computer's administrator account, may change anything; sudo runs one command as root after asking for your password, and chown gives a file a new owner, so both are used rarely and on…
Category
Bash
Level
Journeyman
Tags
chown, linux, root-user, sudo, unix, user-and-group