[SA HW2] check drop others permission on uploaded file

97 views
Skip to first unread message

鄭秉豐

unread,
Oct 13, 2025, 3:16:13 PMOct 13
to NYCU NASA 課程討論區
想請問下我應該已經移除others' permission

/mnt/hw2/sftp/public# ls -l

total 40

drwxrwx--- 2 sftp-u2 sftpusers 4096 Oct 14 03:10 testdir_1760382609_sftp-u2

drwxrwx--- 2 sysadm  sftpusers 4096 Oct 14 03:10 testdir_1760382609_sysadm

drwxrwx--- 2 sftp-u1 sftpusers 4096 Oct 14 03:10 testdir_1760382612_sftp-u1

drwxrwx--- 2 sysadm  sftpusers 4096 Oct 14 03:10 testdir_1760382612_sysadm

drwxrwx--- 2 sysadm  sftpusers 4096 Oct 14 03:10 testdir_1760382619_anon_sysadm

-rw-rw---- 1 sysadm  sftpusers   31 Oct 14 03:10 testfile_1760382609_3my3p1

-rw-rw---- 1 sftp-u2 sftpusers   32 Oct 14 03:10 testfile_1760382609_gWVPwe

-rw-rw---- 1 sysadm  sftpusers   31 Oct 14 03:10 testfile_1760382612_4Krijf

-rw-rw---- 1 sftp-u1 sftpusers   32 Oct 14 03:10 testfile_1760382612_lxaf8m

-rw-rw---- 1 sysadm  sftpusers   31 Oct 14 03:10 testfile_1760382619_anon_AAdEJj

-rw-rw---- 1 sftp-u1 sftpusers    0 Oct 14 03:10 testfile_kEbdlsEO_veryopen.txt


但是judge還是顯示
------ CHECK SFTP-user drop others permission on uploaded file ----- sftp-u1's file permission: sftp-u1 => not OK, others have permission

許仲宇

unread,
Oct 13, 2025, 11:40:41 PMOct 13
to NYCU NASA 課程討論區
同學您好:

這個 checkpoint 會由 judge 使用 sudo ls 來確認 permission,請您設定使 judge 擁有 no password sudo 的權限
這個要求在簡報上漏掉了,我會再補上

感謝您的回報

TA hsuchy

rty7...@gmail.com 在 2025年10月14日 星期二凌晨3:16:13 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages