docs: fix s03 permission gate example

This commit is contained in:
gui-yue
2026-06-22 16:10:06 +08:00
parent 20e7cbb72c
commit 4a329c9583
3 changed files with 3 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ python s03_permission/code.py
Try these prompts: Try these prompts:
1. `Create a file called test.txt in the current directory` (should pass through) 1. `Create a file called test.txt in the current directory` (should pass through)
2. `Delete all temporary files in /tmp` (bash + rm triggers Gate 2) 2. `Delete the file test.txt` (bash + rm triggers Gate 2)
3. `What files are in the current directory?` (read-only, all pass) 3. `What files are in the current directory?` (read-only, all pass)
4. `Try to write a file to /etc/something` (writing outside workspace triggers Gate 2) 4. `Try to write a file to /etc/something` (writing outside workspace triggers Gate 2)

View File

@@ -139,7 +139,7 @@ python s03_permission/code.py
以下のプロンプトを試してみよう: 以下のプロンプトを試してみよう:
1. `Create a file called test.txt in the current directory`(そのまま通過するはず) 1. `Create a file called test.txt in the current directory`(そのまま通過するはず)
2. `Delete all temporary files in /tmp`bash + rm でゲート 2 が発動) 2. `Delete the file test.txt`bash + rm でゲート 2 が発動)
3. `What files are in the current directory?`(読み取り専用、すべて通過) 3. `What files are in the current directory?`(読み取り専用、すべて通過)
4. `Try to write a file to /etc/something`(作業ディレクトリ外への書き込みでゲート 2 が発動) 4. `Try to write a file to /etc/something`(作業ディレクトリ外への書き込みでゲート 2 が発動)

View File

@@ -139,7 +139,7 @@ python s03_permission/code.py
试试这些 prompt 试试这些 prompt
1. `Create a file called test.txt in the current directory`(应该直接通过) 1. `Create a file called test.txt in the current directory`(应该直接通过)
2. `Delete all temporary files in /tmp`bash + rm 会触发闸门 2 2. `Delete the file test.txt`bash + rm 会触发闸门 2
3. `What files are in the current directory?`(只读,全部通过) 3. `What files are in the current directory?`(只读,全部通过)
4. `Try to write a file to /etc/something`(写工作区外,触发闸门 2 4. `Try to write a file to /etc/something`(写工作区外,触发闸门 2