- Mastering Linux Security and Hardening
- Donald A. Tevault
- 109字
- 2021-07-02 19:19:26
Using the motd file
The /etc/motd file will present a message banner to anyone who logs in to a system through Secure Shell. On your CentOS machine, an empty motd file is already there. On your Ubuntu machine, the motd file isn't there, but it's a simple matter to create one. Either way, open the file in your text editor and create your message. Save the file and test it by remotely logging in through Secure Shell. You should see something like:
maggie@192.168.0.100's password:
Last login: Sat Oct 7 20:51:09 2017
Warning: Authorized Users Only!
All others will be prosecuted.
[maggie@localhost ~]$
motd stands for Message of the Day.
推薦閱讀
- 科技安全:戰略實踐與展望
- INSTANT Netcat Starter
- Securing Blockchain Networks like Ethereum and Hyperledger Fabric
- 數據安全實踐指南
- Learning Devise for Rails
- 計算機網絡安全技術研究
- SQL Injection Strategies
- 網絡空間安全:拒絕服務攻擊檢測與防御
- 網絡空間安全法律問題研究
- Developing Applications with Salesforce Chatter
- 網站入侵與腳本技術快速防殺
- 精通Metasploit滲透測試(第3版)
- Web應用安全威脅與防治
- 商用密碼權威指南:技術詳解、產品開發與工程實踐
- 網絡信息安全