组或世界可写目录

组或世界可写目录

我尝试使用脚本但出现以下错误:

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仅对拥有它的用户可读、可写和可执行。您可能不希望其他用户具有对保存私有证书的目录的读取访问权限。

相关内容