You can create the file '/etc/motd' with a message in it, the user sees the
message when logging in.
Regards,
Edmond
/etc/motd
motd = 'message of the day'
/etc/issue is displayed before the login: prompt of getty and telnetd
logins.
>>You can create the file '/etc/motd' with a message in it, the user sees the
>>message when logging in.
--
Nathan Dorfman <nat...@fcc.net> The statements and opinions in my
Unix Admin @ Frontline Communications usenet posts are mine, not FCC's.
"The light at the end of the tunnel is the headlight of an approaching
train." --/usr/games/fortune
Robert Barnes <bar...@erols.com> writes:
>Actually,
> The motd comes up AFTER login. If you want to put up
>a banner BEFORE login and have Solaris 2.6 or greater,
>you want /etc/default/telnetd. man telnetd for details.
/etc/issue: - before login
/etc/default/telnetd - login banner (2.6+)
/etc/motd - after login
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
1. mv /bin/login /bin/login.orig
2. edit a script using vi (or whatever) called /bin/login to look
like:
#!/bin/sh
echo
"******************************************************************"
echo "* WARNING: To protect the system from unauthorized use and to
*"
echo "* ensure that the system is functioning properly, activities on
*"
echo "* this system are monitored and recorded and subject to audit.
*"
echo "* Use of this system is expressed consent to such monitoring and
*"
echo "* recording. Any unauthorized access will result in users being
*"
echo "* shot or hanged or both
*"
echo
"******************************************************************"
echo
exec /usr/bin/login.orig $*
exit 0
Last telnet to the machine from the current login session and make sure
you didn't screw anything up (before logging off).
>Robert Barnes wrote:
>
> Actually,
> The motd comes up AFTER login. If you want to put up
> a banner BEFORE login and have Solaris 2.6 or greater,
> you want /etc/default/telnetd. man telnetd for details.
Joseph Kane <kan...@NetHeaven.com> writes:
>If you are not running Solaris 2.6 or later then do the following:
> 1. mv /bin/login /bin/login.orig
> 2. edit a script using vi (or whatever) called /bin/login to look
>like:
>#!/bin/sh
This is about what /etc/issue does.
Robert Barnes пишет:
> Actually,
> The motd comes up AFTER login. If you want to put up
> a banner BEFORE login and have Solaris 2.6 or greater,
> you want /etc/default/telnetd. man telnetd for details.
> -bob
> Xander Buys wrote:
> >
> > Hi,
> >
> > /etc/motd
> >
> > motd = 'message of the day'
> >
> > Grater wrote:
> >
> > > What file sets the login message for Solaris? I need to add some
> > > warning messages before a user logs in (telnet and at console). I am know
> > > Linux uses /etc/issue and /etc/issue.net, but I am unfamiliar with Solaris.
--
===============================================
Yuri V.Tenishev Combellga
Moscow, Russia
Tel. +7 (502) 222-1589 from abroad
(095) 238-4975 local
Fax. +7 (502) 222-1586 from abroad
(095) 931-9908 local
===============================================