Change login message

Hi all. I want to change the message that appears before the login. In /etc/gettytab I found the ": if=/etc/issue:" command, so I creat "issue" file in etc and type my message in it. After that I could see my message before login but I can't see it in when I use console.
Who can help me? I want to see a message before login.
Thanks
 
What is your login method in console?

If you're trying to login by using SSH connection;

# vi /etc/banner
and write your message.

# vi /etc/ssh/sshd_config
and add
Code:
Banner /etc/banner

then,
# /etc/rc.d/sshd restart
 
how can i add custom message in motd which i was able to do in 12.2.but now its removed in 13 freebsd version.
 
Note that until version 12.2, the motd file itself was stored in /etc. Beginning with version 13, it is stored in /var/run, but rebuilt (at boot times and when the sysadmin so chooses) from /etc/motd.template. Read the man page SirDice pointed to, and read /etc/rc.d/motd, then it will become clear.
 
Back
Top