使用此程序,在兩個標題檔案中建立反映您的網站安全策略的安全訊息。認證之前會顯示 /etc/issue 檔案,認證之後則顯示 /etc/motd 檔案。
開始之前
您必須成為被指派「編輯管理員訊息」權限設定檔的管理員。如需更多資訊,請參閱Securing Users and Processes in Oracle Solaris 11.2 中的Using Your Assigned Administrative Rights。
# 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 的內容,就像 ssh、telnet 以及 FTP 服務一樣。若要在桌面登入顯示 /etc/issue 的內容,請參閱如何將安全訊息放置在桌面登入畫面上。
如需更多資訊,請參閱 issue(4) 線上手冊和 pfedit(1M) 線上手冊。
# pfedit /etc/motd This system serves authorized users only. Activity is monitored and reported.
在 Oracle Solaris 中,使用者的初始 Shell 會顯示 /etc/motd 檔案的內容。