修改ubuntu登录信息【转】

 看到烦人的登录声明提示,真不很爽,本来自己开个SSH 窗口就不大,还硬被塞这些没用的东西:

 

Linux ubuntu 2.6.24-24-virtual #1 SMP Tue Jul 7 20:55:36 UTC 2009 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
Last login: Tue Sep 22 10:40:31 2009

 

下面是修改方法:

 

root@ubuntu:/etc# ls -al motd* lrwxrwxrwx 1 root root 13 Sep 21 19:23 motd -> /var/run/motd -rw-r--r-- 1 root root 67 Sep 22 11:27 motd.tail

 

root@ubuntu:/etc# vim motd.tail 1 Welcome come to My jeos[just enougth OS] based on ubuntu by zanget

 

找到更新地方了: /etc/init.d/bootmisc.sh  [sh,utf-8,unix] CWD:/root Line:31/83 

 

  42 # Update motd 43 uname -snrvm > /var/run/motd 44 [ -f /etc/motd.tail ] && cat /etc/motd.tail >> /var/run/motd 45

你可能感兴趣的:(unix,ubuntu,System,Access,documentation,login)