Oracle® Solaris 11 安全性準則

結束列印檢視

更新日期: 2014 年 9 月
 
 

如何將安全訊息放置在標題檔案中

使用此程序,在兩個標題檔案中建立反映您的網站安全策略的安全訊息。認證之前會顯示 /etc/issue 檔案,認證之後則顯示 /etc/motd 檔案。


備註 - 此程序中的範例訊息無法滿足美國政府的要求,可能也無法滿足您的安全策略。請向您公司的法律顧問查詢安全訊息的相關內容。

開始之前

您必須成為被指派「編輯管理員訊息」權限設定檔的管理員。如需更多資訊,請參閱Securing Users and Processes in Oracle Solaris 11.2 中的Using Your Assigned Administrative Rights

  1. 建立 /etc/issue 檔案並新增安全訊息。
    # pfedit /etc/issue
    ALERT   ALERT   ALERT   ALERT   ALERT
    
    This machine is available to authorized users only.
    
    If you are an authorized user, continue.
    
    Your actions are monitored, and can be recorded.

    login 指令會在認證前顯示 /etc/issue 的內容,就像 sshtelnet 以及 FTP 服務一樣。若要在桌面登入顯示 /etc/issue 的內容,請參閱如何將安全訊息放置在桌面登入畫面上

    如需更多資訊,請參閱 issue(4) 線上手冊和 pfedit(1M) 線上手冊。

  2. 新增安全訊息至 /etc/motd 檔案。
    # pfedit /etc/motd
    This system serves authorized users only. Activity is monitored and reported.

    在 Oracle Solaris 中,使用者的初始 Shell 會顯示 /etc/motd 檔案的內容。