2013年9月29日 星期日

[SA] Hw1-1


Requirements

  • Basic:
    • Install up-to-date –RELEASE of FreeBSD (9.1-R)
    • Add a user and a group
      • Group name should be identical to your username
      • User should also be in the ‘wheel’ group
    •  Set your machine to current time zone and adjust current time
    •  Enable sshd



Submission

  •  Login with the user you created
  • $ rm –f /tmp/sahw1-1.tmp
  • $ uname –a >> /tmp/sahw1-1.tmp
  • $ date >> /tmp/sahw1-1.tmp
  • $ id >> /tmp/sahw1-1.tmp
  • $ mail –s ‘[SAHW1-1] 0005566’ sahw1@nasa.cs.nctu.edu.tw < /tmp/sahw1-1.tmp


Add user and a group 在 configure 那邊就可以設定,time zone 和 sshd 也是。
(雖然我 time zone 是用 $ntpdate clock.stdtime.gov.tw)
基本上的確是灌起來就沒事了,mail 就用內建的就可以。

但是因為我是用虛擬機(Virtualbox 4.2.12 on Linux Mint15),然後接無網,結果遇到了奇怪的雷OTZ

網路通了,但是 mail 寄不出去。

首先一定是先 check DNS,DNS 改過之後 (resolve.conf) 一樣出不去。
tail 一下 /var/log/maillog 的錯誤訊息是



最後用 wireshark 檢查封包發現 tcp.port==25 一直重複出現 SYN。

弄了兩天放棄,改用社窩的虛擬機,然後一次就成功了(默

沒有留言:

張貼留言