1835085 Members
2879 Online
110073 Solutions
New Discussion

message setting

 
Binu_5
Regular Advisor

message setting

Hi All

Can any body tell me how to set the information before logining in

Which file should I edit

Thanks
Binu
7 REPLIES 7
xyko_1
Esteemed Contributor

Re: message setting

Hi Binu,

I don't know if I understand your question but ...

to configure log system you have to customize /etc/syslog.conf

Here you have some good information on how to configure your log system.

http://www.linuxhomenetworking.com/linux-hn/logging.htm

regards,
xyko
Binu_5
Regular Advisor

Re: message setting

Hi

I want to set the messages like this
elnet TERMINAL-SPEED option ON
Red Hat Linux release 9 (Shrike)
Kernel 2.4.20-8smp on an i686
login:

before loging in

Thanks
Binu
Dave Falloon
Trusted Contributor

Re: message setting

The files you want are:

/etc/motd
/etc/issue

and if your system uses it:

/etc/issue.net

--Dave
Clothes make the man, Naked people have little to no effect on society
Ivan Ferreira
Honored Contributor

Re: message setting

Edit /etc/issue or /etc/netissue.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: message setting

Sorry the real file is /etc/issue.net, also you can use the /etc/profile, bash_profile or bashrc.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Stuart Browne
Honored Contributor

Re: message setting

To set a telnet session's options, you need your telnet client to be able to manipulate them!

Those options are usually for the client capabilities.

That being said, you list 'terminal-speed'. What exactally are you trying to do? Normally, the terminal's speed is set via the baud rate the tty can work at, but psudeo tty's are usually a bit different (as the only limitation on them is network speed).
One long-haired git at your service...
Bejoy C Alias
Respected Contributor

Re: message setting

U can use the following escape characters in ur issue or issue.net files

\d insert current day (localtime),
\l insert line on which mingetty is running,
\m inserts machine architecture (uname -m),
\n inserts machine's network node hostname (uname -n),
\o inserts domain name,
\r inserts operating system release (uname -r),
\t insert current time (localtime),
\s inserts operating system name,
\u resp. \U the current number of users which are currently logged in.
\U inserts "n users", where as \u only inserts "n".
\v inserts operating system version (uname -v).


see the man pages of mingetty
Be Always Joy ......