FreeBSD/ログイン時のメッセージを変更する の変更点
*&SIZE(15){''ログイン時のメッセージを変更する。''}; [#x7f74350]
[[dokuwiki.fl8.jp転載済み>http://dokuwiki.fl8.jp/doku.php/02_freebsd/99_%E3%81%9D%E3%81%AE%E4%BB%96/%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3%E6%99%82%E3%81%AE%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8]]
telnetやsshでログインした際に出力されるメッセージを変更する方法
+[[''環境''>#A]]
+[[''/etc/motd''>#B]]
**''環境''&aname(A); [#w230eb00]
FreeBSD 6.0~
~
**''/etc/motd''&aname(B); [#p9b40e5c]
ログイン時のメッセージは/etc/motdの内容を出力しています。~
デフォルトだとこんな状態。
$ cat /etc/motd
FreeBSD 6.0-STABLE (MYKERNEL) #0: Fri Nov 25 02:02:28 JST 2005
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o Security advisories and updated errata information for all releases are
at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
for your release first as it's updated frequently.
o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
along with the mailing lists, can be searched by going to
http://www.FreeBSD.org/search/. If the doc distribution has
been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list. If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page. If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility. Edit /etc/motd to change this login announcement.
/etc/motdを編集するば、オリジナルのログインメッセージを出力できます。