![组或世界可写目录](https://linux22.com/image/8361/%E7%BB%84%E6%88%96%E4%B8%96%E7%95%8C%E5%8F%AF%E5%86%99%E7%9B%AE%E5%BD%95.png)
我尝试使用脚本但出现以下错误:
Directory is group or world writeable.
This is insecure, since any malicious user can trick you to write
newly generated private key into his file. Please, restrict directory
rights to permit directory writes only to yourself or choose another
directory.
我该如何解决?
答案1
chmod 0700 /path/to/directory
该命令将directory
仅对拥有它的用户可读、可写和可执行。您可能不希望其他用户具有对保存私有证书的目录的读取访问权限。