【Linux learning】 chown modify owner and group

Modify file owner or group attributes via chown

chown -R newown:newgroup directory/

1
[me@VM_0_14_centos ~] # chmod -R apache:apache /root

Change the directory root and all subdirectories and files to the owner apache and the group apache

chown -R 777 directory/

1
[me@VM_0_14_centos ~] # chmod -R 777 /root

777 stands for executable, writable, and readable permissions
Modify the directory root and all subdirectories and files to be readable, writable, and executable

Persist in original technology sharing, your support will encourage me to continue to create!