用 chown 和 chmod 修改目录所属用户及权限

1、修改 tmp 目录所属用户为 root,用户组为 root

chown -R root:root /tmp
2、修改 tmp 目录为可写权限

chmod -R 777 /tmp