In order to prevent all anonymous FTP users from listing uploaded file names, what security precaution can be taken when creating an upload directory?
A. The directory must not have the execute permission set.
B. The directory must not have the read permission set.
C. The directory must not have the read or execute permission set.
D. The directory must not have the write permission set.
E. The directory must not contain other directories.
题解
目录的读取权限,影响着其是否能被浏览其底下所保存的文档列表。目录的运行权限,影响着其底下的文档是否能够被读取(如果该文档本身的权限是设成可被读取的话)、运行(如果该文档本身的权限是设成可被读取与运行的话)或是写入(如果该文档本身的权限是设成可被写入的话)。目录的写入权限与运行权限,影响着是否能在其中删除或是新建文件。
所以选项「B」是正确答案。
