cnblogs/dcrenl/用 chown 和 chmod 修改目录所属用户及权限.html
2024-09-24 12:43:01 +08:00

3 lines
173 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>1、修改 tmp 目录所属用户为 root用户组为 root</p>
<p>chown -R root:root /tmp<br />1<br />2、修改 tmp 目录为可写权限</p>
<p>chmod -R 777 /tmp</p>