1 / 22

系統建置問題解決

系統建置問題解決. 指導老師 : 蔡德明. 組員 : 林啟哲 李承鴻 李平 徐啟閎. 系統建置問題解決. 建立帳號與管理. 指導老師 : 蔡德明. 組員 : 林啟哲 李承鴻 李平 徐啟閎. 目錄. 一、實作要求 …………………………………………P.6 二、測試過程 …………………………………………P.7 三、實作過程 …………………………………………P.14 四、操作問題 …………………………………………P.19 五、解決方法 …………………………………………P.20 六 、參考資料 …………………………………………P.21. 一、實作要求.

leane
Download Presentation

系統建置問題解決

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 系統建置問題解決 指導老師: 蔡德明 組員: 林啟哲李承鴻 李平徐啟閎

  2. 系統建置問題解決

  3. 建立帳號與管理 指導老師: 蔡德明 組員: 林啟哲李承鴻 李平徐啟閎

  4. 目錄 • 一、實作要求…………………………………………P.6 • 二、測試過程…………………………………………P.7 • 三、實作過程…………………………………………P.14 • 四、操作問題…………………………………………P.19 • 五、解決方法…………………………………………P.20 • 六、參考資料…………………………………………P.21

  5. 一、實作要求 1.建立user1~60,第一次使用ssh登入強制修改密碼(預設目錄在/home底下) 2.每個同學磁碟使用限制為100MB(使用其他partition) 3.建立同學們的共享目錄/home/userhome/ 4.user61~70無法使用ssh登入系統 5.讓user10使用su – 變成root(不給root密碼) 6.取消root的sshd服務登入功能 7.上述要求盡量以shell script方式進行,並考慮若非連續帳號該如何設計

  6. 二、測試過程 圖(2-1)

  7. 二、測試過程 圖(2-2)

  8. 二、測試過程 圖(2-3)

  9. 二、測試過程 圖(2-4)

  10. 二、測試過程 圖(2-5)

  11. 二、測試過程 vim /etc/fstab 設置/dev/hda10 圖(2-6) 圖(2-7)

  12. 二、測試過程 圖(2-8) 圖(2-9)

  13. 三、實作過程 圖(3-1)

  14. 三、實作過程 圖(3-2)

  15. 三、實作過程 圖(3-4) 圖(3-3)

  16. 三、實作過程 圖(3-5) 圖(3-6)

  17. 三、實作過程 圖(3-8) 圖(3-7)

  18. 四、操作問題 Q1:測試時一開始是先建立使用者再掛載/dev/hda10 Q2:對user61~70限制無法使用ssh登入系統,但要在第一次登入時要求修改密碼 Q3:不知如何在shell script打指令設定quota Q4:設計Shell script必須考量非連續帳號的問題

  19. 五、解決方法 A1:在shell script一開始先下掛載/dev/hda10的指令 A2:知道題義是要使用者登入後再做無法登入的設定 A3:在迴圈下使用setquota來設定 A4:以for i in $(seq A B) C D….. 取代原本的for ((i=1; i<=B ;i=i+1))

  20. 六、參考資料 • 鳥哥的LINUX私房菜 • http://linux.vbird.org/ • 鳥哥、學長

  21. THEEND

More Related