Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Change login message (banner)?

687 views
Skip to first unread message

Grater

unread,
Jan 18, 1999, 3:00:00 AM1/18/99
to
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.

Edmond van As

unread,
Jan 19, 1999, 3:00:00 AM1/19/99
to Grater
Hi,

You can create the file '/etc/motd' with a message in it, the user sees the
message when logging in.

Regards,

Edmond

Xander Buys

unread,
Jan 19, 1999, 3:00:00 AM1/19/99
to Grater
Hi,

/etc/motd

motd = 'message of the day'

Robert Barnes

unread,
Jan 19, 1999, 3:00:00 AM1/19/99
to
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

Rick Frey

unread,
Jan 19, 1999, 3:00:00 AM1/19/99
to
I am trying to change the message shown before a user logs in. The
"motd" is the message shown after the user logs in.

Nathan Dorfman

unread,
Jan 20, 1999, 3:00:00 AM1/20/99
to
In comp.unix.solaris, "Rick Frey" <12...@nowhere.com> wrote:
> I am trying to change the message shown before a user logs in. The
>"motd" is the message shown after the user logs in.

/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

Casper H.S. Dik - Network Security Engineer

unread,
Jan 20, 1999, 3:00:00 AM1/20/99
to
[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]

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.

Rick Frey

unread,
Jan 21, 1999, 3:00:00 AM1/21/99
to
Thanks- that is what I was looking for.

Joseph Kane

unread,
Feb 4, 1999, 3:00:00 AM2/4/99
to
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
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.

Casper H.S. Dik - Network Security Engineer

unread,
Feb 4, 1999, 3:00:00 AM2/4/99
to
[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]

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.

Yuri V.Tenishev

unread,
Feb 6, 1999, 3:00:00 AM2/6/99
to
You can use /etc/issue ,as you did it on linux .
/etc/issue starts before login and before /etc/motd

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
===============================================

0 new messages