📜  chmod chown - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:33.432000             🧑  作者: Mango

代码示例1
// chown: change owner
chown -R user:group /path/to/directory     //recursively
chown -R root:root /path/to/directory
chown -R www-data:www-data /path/to/directory

// chmod: change mode, edit read/write access
chmod u=rw,g=rw,o=r document.docx
chmod 755 /path/to/directory