Commonly used · Permissions and links
chown:Modify owner
Syntax
chown [-R] users[:group] path…Options
-R- Recursive modification
Examples
sudo chown root /etc/app.confUsage and sandbox support
Teaching environments record the owner string, real systems usually require administrator privileges.
Hands-on exercises
- Leave it to the administratorEveryday
- Unified directory ownerAdvanced
Related commands
chmodModify permissionsumaskSet new file permission masklnCreate symbolic linkreadlinkView symbolic link targetssudoExecute command as administratorgroupsQuery user groupchgrpModify the group to which the file belongsgetfaclView extended access controlsetfaclSet up extended access controllsattrQuery file attribute flagschattrModify file attribute flagssuSwitch user sessionpasswdChange account passworduseraddcreate AccountusermodModify account propertiesuserdelDelete accountgroupaddCreate user groupgetentQuery system account database