{
 "權限是什麼?讀懂 ls -l#1": {
  "type": "cards",
  "cards": [
   {
    "title": "u  user",
    "points": [
     "檔案的擁有者"
    ]
   },
   {
    "title": "g  group",
    "points": [
     "所屬群組的成員"
    ]
   },
   {
    "title": "o  others",
    "points": [
     "其他所有人"
    ]
   }
  ],
  "reveal": [
   0,
   0,
   1,
   2,
   3
  ]
 },
 "權限是什麼?讀懂 ls -l#2": {
  "type": "cards",
  "cards": [
   {
    "title": "r  read",
    "points": [
     "讀取"
    ]
   },
   {
    "title": "w  write",
    "points": [
     "寫入、修改"
    ]
   },
   {
    "title": "x  execute",
    "points": [
     "執行"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "權限是什麼?讀懂 ls -l#3": {
  "type": "table",
  "head": [
   "欄位",
   "意義"
  ],
  "rows": [
   [
    "-rw-r--r--",
    "類型 + 九個權限"
   ],
   [
    "1",
    "連結數"
   ],
   [
    "student",
    "擁有者"
   ],
   [
    "student",
    "所屬群組"
   ],
   [
    "120",
    "大小(位元組)"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "權限是什麼?讀懂 ls -l#5": {
  "type": "table",
  "head": [
   "名稱",
   "權限",
   "類型"
  ],
  "rows": [
   [
    "docs",
    "drwxr-xr-x",
    "目錄"
   ],
   [
    "notes.txt",
    "-rw-r--r--",
    "一般檔案"
   ]
  ],
  "reveal": [
   0,
   0,
   0,
   1,
   2
  ]
 },
 "權限是什麼?讀懂 ls -l#7": {
  "type": "table",
  "head": [
   "字元",
   "類型"
  ],
  "rows": [
   [
    "-",
    "一般檔案"
   ],
   [
    "d",
    "目錄"
   ],
   [
    "l",
    "符號連結"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "用 chmod 修改權限#3": {
  "type": "bar",
  "labels": [
   "r",
   "w",
   "x",
   "rwx",
   "rw-",
   "r-x"
  ],
  "values": [
   4,
   2,
   1,
   7,
   6,
   5
  ],
  "highlight": 3,
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5,
   6
  ]
 },
 "用 chmod 修改權限#4": {
  "type": "flow",
  "nodes": [
   {
    "label": "6",
    "sub": "擁有者 rw-"
   },
   {
    "label": "4",
    "sub": "群組 r--"
   },
   {
    "label": "0",
    "sub": "其他人 ---",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   0,
   0,
   1,
   2,
   3
  ]
 },
 "用 chmod 修改權限#6": {
  "type": "table",
  "head": [
   "數字",
   "權限",
   "用途"
  ],
  "rows": [
   [
    "644",
    "rw-r--r--",
    "一般文件"
   ],
   [
    "755",
    "rwxr-xr-x",
    "程式或目錄"
   ],
   [
    "600",
    "rw-------",
    "私密檔案"
   ],
   [
    "700",
    "rwx------",
    "私人目錄或腳本"
   ],
   [
    "640、750",
    "群組多一點",
    "群組權限變化"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ],
  "widths": [
   1,
   1.6,
   1.8
  ]
 },
 "執行腳本、root 與 sudo#3": {
  "type": "flow",
  "nodes": [
   {
    "label": "ls -l hello.sh",
    "sub": "沒有任何 x"
   },
   {
    "label": "./hello.sh",
    "sub": "Permission denied"
   },
   {
    "label": "chmod u+x",
    "sub": "補上執行權限",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   1,
   2,
   2,
   3
  ]
 },
 "執行腳本、root 與 sudo#7": {
  "type": "cards",
  "cards": [
   {
    "title": "平常用一般使用者",
    "points": [
     "不要長時間用 root"
    ]
   },
   {
    "title": "用 sudo",
    "points": [
     "只針對那一個指令臨時提升"
    ]
   },
   {
    "title": "權限只給需要的人",
    "points": [
     "不要貪方便設成 777"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "Permission denied 排查與 chown、umask 簡介#2": {
  "type": "flow",
  "nodes": [
   {
    "label": "讀錯誤訊息",
    "sub": "哪個動作、哪個路徑"
   },
   {
    "label": "我是誰?",
    "sub": "whoami、id"
   },
   {
    "label": "看檔案",
    "sub": "ls -l"
   },
   {
    "label": "查目錄",
    "sub": "每層都要 x"
   },
   {
    "label": "最小修正",
    "sub": "不要用 777",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "Permission denied 排查與 chown、umask 簡介#7": {
  "type": "table",
  "head": [
   "情境",
   "原因",
   "修正"
  ],
  "rows": [
   [
    "腳本被拒",
    "缺 x",
    "chmod u+x"
   ],
   [
    "讀不到內容",
    "檔案缺 r 或目錄缺 x",
    "補 r 或 x"
   ],
   [
    "寫不進去",
    "檔案或目錄缺 w",
    "補 w;系統目錄用 sudo"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "widths": [
   1.2,
   2,
   2
  ]
 }
}