Server environment: ubuntu12.04
Modify the following script to modify the system prompt text at login.
[Email protected]:/etc/update-motd.d# ll
Total 20
Drwxr-xr-x 2 root root 4096 Nov 11 02:16.
Drwxr-xr-x root root 4096 8 02:31. /
-rwxr-xr-x 1 root root 1220 Nov 02:09 00-header*
-rwxr-xr-x 1 root root 1478 Nov 02:16 10-help-text*
-rwxr-xr-x 1 root root 1158 Apr 99-footer*
Header files provide information about the display of the header, default to the version of the operating system, and so on.
Help-text is displayed as the main text message, which can include some warnings and so on.
Footer The end of the file.
All of these are shell scripts. Can be modified after the next time a new session request comes into effect.
This article is from the "technology for the King" blog, please be sure to keep this source http://wangzhenyu.blog.51cto.com/2996939/1575269
Linux modifies MOTD to provide personalized login information