[SA HW2] 請問anonymous應該要讀到甚麼?

50 views
Skip to first unread message

陳季磊

unread,
Oct 25, 2025, 11:39:32 AMOct 25
to NYCU NASA 課程討論區
如題: 要求說: Every uploaded file should remove others' Read/Write/Execute permissions
而anonymous自己又沒法上傳檔案,那他到底會有辦法存取到甚麼東西,好像也沒預設說要有放檔案到public阿

許仲宇

unread,
Oct 25, 2025, 1:04:05 PMOct 25
to NYCU NASA 課程討論區
同學您好:

第一個問題,「請問 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

ericer...@gmail.com 在 2025年10月25日 星期六晚上11:39:32 [UTC+8] 的信中寫道:

陳季磊

unread,
Oct 26, 2025, 4:02:20 AMOct 26
to NYCU NASA 課程討論區
阿,我明白了,我誤用英文去理解就以為是要設定只有自己可以存取,了解了,謝謝助教
twofour...@nycu.edu.tw 在 2025年10月26日 星期日凌晨1:04:05 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages