Groups
Groups
Sign in
Groups
Groups
NYCU NASA 課程討論區
Conversations
About
Send feedback
Help
[SA HW2] check-log
123 views
Skip to first unread message
朱修毅
unread,
Oct 28, 2025, 12:36:57 AM
Oct 28
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
請問這邊 sftp-u1 會使用 !journalctl -t internal-sftp 還是單純的 journalctl -t internal-sftp
因為 sftp 中似乎不能執行 shell 指令,此外由於 chroot 我需要多做其他操作這樣,想確定一下這是預期中的嗎
許仲宇
unread,
Oct 28, 2025, 7:01:01 AM (14 days ago)
Oct 28
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
同學您好:
1. 會去下
sudo journalctl -t internal-sftp -t sftp-server
的人是
judge
而非
sftp-u1
且其會用 SSH 而非 SFTP 來連線
2. 「此外由於 chroot 我需要多做其他操作這樣,想確定一下這是預期中的嗎」
是,這是預期中的。您可以參考 HW2-2 的 hint
TA hsuchy
jsy030...@nycu.edu.tw
在 2025年10月28日 星期二中午12:36:57 [UTC+8] 的信中寫道:
朱修毅
unread,
Oct 28, 2025, 8:58:55 AM (14 days ago)
Oct 28
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
那這個部分是 sftp-u1 會去下 cat 嗎,因為在前一個要求中 sftp-u1 應該是不能 ssh,所以我不太了解為甚麼這邊會有 sftp-u1 的問題,檔案部分我測試過以 sftp-u1 的身分登入 sftp-u1,是可以 get /var/log/sftp.log 的,所以我是要讓他在 sftp 中執行 cat 嗎,還是這邊的意思是 log 中沒有 sftp-u1 的資訊
twofour...@nycu.edu.tw
在 2025年10月28日 星期二晚上7:01:01 [UTC+8] 的信中寫道:
螢幕擷取畫面 2025-10-28 205518.png
許仲宇
unread,
Oct 28, 2025, 9:12:13 AM (14 days ago)
Oct 28
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
同學您好:
1. 「那這個部分是 sftp-u1 會去下 cat 嗎」
下 cat 的人也是
judge
2. 「
檔案部分我測試過以 sftp-u1 的身分登入 sftp-u1,是可以 get /var/log/sftp.log 的
」
提醒您,sftp-u1 是 chroot 的狀態
3. 「還是這邊的意思是 log 中沒有 sftp-u1 的資訊」
是,judge 在 log 中找不到 sftp-u1 的操作紀錄
jsy030...@nycu.edu.tw
在 2025年10月28日 星期二晚上8:58:55 [UTC+8] 的信中寫道:
朱修毅
unread,
Oct 28, 2025, 11:59:42 AM (14 days ago)
Oct 28
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
通過了,感謝助教幫忙,之前不瞭解 log 運作的方式所以 mount 錯檔案了,再次謝謝助教
twofour...@nycu.edu.tw
在 2025年10月28日 星期二晚上9:12:13 [UTC+8] 的信中寫道:
張鈞博
unread,
Nov 9, 2025, 3:33:18 AM (2 days ago)
Nov 9
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
助教~我也遇到類似的問題 想請問 judge 在 log 中找不到 sftp-u1-u2 anonymous 的操作紀錄(但找的到sysadm) 是不是 chroot 造成的問題,有甚麼HINT嗎? 我現在是用 Subsystem sftp internal-sftp -f AUTH -l INFO ,把internal-sftp 換成/usr/lib/openssh/sftp-server 是潛在的解法嗎? 謝謝
jsy030...@nycu.edu.tw
在 2025年10月28日 星期二晚上11:59:42 [UTC+8] 的信中寫道:
許仲宇
unread,
Nov 9, 2025, 8:03:21 AM (2 days ago)
Nov 9
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
同學您好:
「有甚麼HINT嗎」
Spec 上有提供作為 Hint 的參考資料,且您回覆的
這則
討論串也有提及相關的 Hint 位置
強烈建議您
可以先嘗試閱讀提供的參考資料
,若仍有問題後再發問
謝謝
TA hsuchy
poposolo...@nycu.edu.tw
在 2025年11月9日 星期日下午4:33:18 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages