gpt4 book ai didi

ubuntu - 在ubuntu中设置权限

转载 作者:行者123 更新时间:2023-12-04 18:57:59 26 4
gpt4 key购买 nike

我对 ubuntu 权限有疑问。
我将 Flash 文件 test.swf 嵌入到另一个 php 文件中,比如 test.php 并上传到我的服务器(www.example.com/test.html)

我需要保护 test.swf 免受未经授权的读取。所以我将权限更改为 0440(只有所有者和组可以读取)。我把test.php的权限改成了0644(owner,group and other),这样大家就可以阅读了。是否可以同时在 test.php 文件中查看我的 test.swf,而直接访问的人无法访问。

最佳答案

确保 .php 和 .swf 是同一组中的成员。
第二个注意,0644 应该是 0655 用于读取和执行。

https://help.ubuntu.com/community/FilePermissions

关于ubuntu - 在ubuntu中设置权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28941312/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com