同學您好:
第一個問題,「
請問 anonymous 應該要讀到甚麼?」
答案與簡報上的內容一致,
anonymous 要可以讀到 public 底下的所有檔案,以及 private/hidden/treasure
而第二個問題,有關於「Every uploaded file should remove others' Read/Write/Execute permissions
」這個敘述,應該是敘述不夠精準,導致您錯認 "others" 的意思了
在 UNIX file permission 的 context 底下,permission 分成三個 class:
- user: Owner of the file
- group: Users who are members of the file's group
- other: Users who are not the owner of the file or members of the file's group
這裡的要求是要您將所有上傳的檔案都移除 other 的 read/write/execute permission
更精確來說,當你下 ls -l 時,若看到「-rw-rw-r--」,代表 other 仍有 read 的權限(r--)
而若看到「-rw-rw----」,代表 other 已被移除 read/write/execute 的權限(---)
TA hsuchy