Pre-Login Message ... How ???

Pre-Login Message ... How ???

Post by Gerald Rana » Tue, 01 Aug 1995 04:00:00




: Is it possible to send a pre-login message using the SunOS?  It seems to
: be used often by government sysadmins to warn people they are trying to
: get into a government machine before they get the login prompt.  I suppose
: others use it for similar reasons.  I thought it would be done just like
: /etc/motd but I can't seem to find any information on how to do it.  Any
: assistance on how this can be done with the SunOS would be appreciated.

The /etc/issue file best describes what you are looking for.

--
(-Gerald Ranada - System Administrator - http://www.veryComputer.com/ - 1984 is now-)
(-Futurist/*punk/Info Enthusist - PGP Public Key available by request-)

 
 
 

Pre-Login Message ... How ???

Post by Deane R. Charls » Tue, 01 Aug 1995 04:00:00


Hi Folks,

Is it possible to send a pre-login message using the SunOS?  It seems to
be used often by government sysadmins to warn people they are trying to
get into a government machine before they get the login prompt.  I suppose
others use it for similar reasons.  I thought it would be done just like
/etc/motd but I can't seem to find any information on how to do it.  Any
assistance on how this can be done with the SunOS would be appreciated.
THANKS!



NASA Goddard Space Flight Center       Phone: (301) 286-5952
Greenbelt, MD 20771                    Fax:   (301) 286-1750

 
 
 

Pre-Login Message ... How ???

Post by Guy Harr » Tue, 01 Aug 1995 04:00:00



>The /etc/issue file best describes what you are looking for.

Assuming you're running Solaris 2.x/SunOS 5.x.

Solaris 1.x/SunOS 4.1.x doesn't have an "/etc/issue" file; for serial
ports, you can, I think, tweak one of "lm" or "im" in "/etc/gettytab",
but I don't think that helps for TELNET or "rlogin" sessions.

I don't know which Solaris 2.x releases use "/etc/issue" (it has the
annoying habit of being controlled by an #ifdef in at least some SV
releases - an #ifdef that, at least in some of them, is *NOT* turned on
by default), nor whether those that do honor it for TELNET or "rlogin"
sessions.

 
 
 

Pre-Login Message ... How ???

Post by Greg Schuem » Tue, 01 Aug 1995 04:00:00




>>The /etc/issue file best describes what you are looking for.

>Assuming you're running Solaris 2.x/SunOS 5.x.

>Solaris 1.x/SunOS 4.1.x doesn't have an "/etc/issue" file; for serial
>ports, you can, I think, tweak one of "lm" or "im" in "/etc/gettytab",
>but I don't think that helps for TELNET or "rlogin" sessions.

>I don't know which Solaris 2.x releases use "/etc/issue" (it has the
>annoying habit of being controlled by an #ifdef in at least some SV
>releases - an #ifdef that, at least in some of them, is *NOT* turned on
>by default), nor whether those that do honor it for TELNET or "rlogin"
>sessions.

What I do under Solaris 2.x is create a file /etc/message which
contains the warning/info.  Inside the /etc/inittab is a line that spits
out information on a telenet, just add a `cat /etc/message` to the line
and you get the desired effect.

-Greg

 
 
 

Pre-Login Message ... How ???

Post by R. Stewart Ell » Wed, 02 Aug 1995 04:00:00



 >: Is it possible to send a pre-login message using the SunOS?  It seems to
 >: be used often by government sysadmins to warn people they are trying to
 >: get into a government machine before they get the login prompt.  I suppose
 >: others use it for similar reasons.  I thought it would be done just like
 >: /etc/motd but I can't seem to find any information on how to do it.  Any
 >: assistance on how this can be done with the SunOS would be appreciated.

 >The /etc/issue file best describes what you are looking for.

/etc/issue only works or real serial ports in Solaris 2.3 and earlier.
Finally in 2.4 it works for all logins.

 >--
 >(-Gerald Ranada - System Administrator - http://www.veryComputer.com/ - 1984 is now-)
 >(-Futurist/*punk/Info Enthusist - PGP Public Key available by request-)
--
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)810-762-9765   ___________________
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.    /   _____  ______

  Web admin:  chimera,nn,tin,jove,kermit - free's best!/________/ /  /  / /

 
 
 

Pre-Login Message ... How ???

Post by Elser Gerha » Wed, 02 Aug 1995 04:00:00



> [..snipped..]

>What I do under Solaris 2.x is create a file /etc/message which
>contains the warning/info.  Inside the /etc/inittab is a line that spits
>out information on a telenet, just add a `cat /etc/message` to the line
>and you get the desired effect.

>-Greg

Do you mean the console login in /etc/inittab, Greg ?
You are correct but this works onkly for the console, neither for a serial
line nor for a telnet or rlogin.

Gerhard
--
        o                    Gerhard ELSER
      o                      Head of Development Department
    O
 __O_____F_O_C_U_S______     SEIERSBERG, Austria
   O     EDV GesmbH

      o                      Tel: +43 316 28 16 16 90
        o                    Fax: +43 316 28 16 16 983 or 981

 
 
 

Pre-Login Message ... How ???

Post by Zum » Wed, 02 Aug 1995 04:00:00



: Hi Folks,

: Is it possible to send a pre-login message using the SunOS?  It seems to
: be used often by government sysadmins to warn people they are trying to
: get into a government machine before they get the login prompt.  I suppose
: others use it for similar reasons.  I thought it would be done just like
: /etc/motd but I can't seem to find any information on how to do it.  Any
: assistance on how this can be done with the SunOS would be appreciated.
: THANKS!

Get tcp_wrappers.  The 'banner' option does that.  (And gives you a lot
more control of various services.)

 
 
 

Pre-Login Message ... How ???

Post by Sandwich Mak » Fri, 04 Aug 1995 04:00:00



": Hi Folks,
"
": Is it possible to send a pre-login message using the SunOS?  It seems to
": be used often by government sysadmins to warn people they are trying to
": get into a government machine before they get the login prompt.  I suppose
": others use it for similar reasons.  I thought it would be done just like
": /etc/motd but I can't seem to find any information on how to do it.  Any
": assistance on how this can be done with the SunOS would be appreciated.
": THANKS!
"
"Get tcp_wrappers.  The 'banner' option does that.  (And gives you a lot
"more control of various services.)

there's a hacked login floating around the net [in the loginlog pkg?]
which includes most of the sV functionality, including dialup passwds
and /etc/issue.
--
                |                               PRIORITIES
Andrew Hay      |       URGENT          get someone else to do it right away

                |       ASAP            whenever...

 
 
 

Pre-Login Message ... How ???

Post by Richard Yate » Fri, 04 Aug 1995 04:00:00




>: Is it possible to send a pre-login message using the SunOS?  It seems to... .
>The /etc/issue file best describes what you are looking for.

Unfortunately this only works if you're coming in via getty (ttymon). We've had
to hack a version of login to include a pre-login message.

Richard.
~~~~~~~~

 
 
 

Pre-Login Message ... How ???

Post by Matus Uhlar Softwa » Sat, 05 Aug 1995 04:00:00


-> : Is it possible to send a pre-login message using the SunOS?  It seems to
-> : be used often by government sysadmins to warn people they are trying to
-> : get into a government machine before they get the login prompt.  I suppose
-> : others use it for similar reasons.  I thought it would be done just like
-> : /etc/motd but I can't seem to find any information on how to do it.  Any
-> : assistance on how this can be done with the SunOS would be appreciated.

try /etc/issue. This will not work for SunOS 5.0-5.3
--
Matus Uhlar (fantomas,uhlar on IRC),
Computer Centre of Technical University in Kosice, Slovakia

 
 
 

Pre-Login Message ... How ???

Post by Frank DiGenna » Sun, 06 Aug 1995 04:00:00




Quote:> >"
> >": Is it possible to send a pre-login message using the SunOS?  It seems to

How about simply putting the message in /etc/gettytab? It works just
fine for me.
Later;
Frank

--
Frank DiGennaro                 301-631-5300 voice, 301-631-5303 Fax
Network Manager, FredNet        301-698-5006 Dialup in Frederick, Md.

 "All problems in life get simpler after some rigatoni and meatballs." - Nana

 
 
 

Pre-Login Message ... How ???

Post by R. Stewart Ell » Sun, 06 Aug 1995 04:00:00



 >": Hi Folks,
 >"
 >": Is it possible to send a pre-login message using the SunOS?  It seems to
 >": be used often by government sysadmins to warn people they are trying to
 >": get into a government machine before they get the login prompt.  I suppose
 >": others use it for similar reasons.  I thought it would be done just like
 >": /etc/motd but I can't seem to find any information on how to do it.  Any
 >": assistance on how this can be done with the SunOS would be appreciated.
 >": THANKS!
 >"
 >"Get tcp_wrappers.  The 'banner' option does that.  (And gives you a lot
 >"more control of various services.)

 >there's a hacked login floating around the net [in the loginlog pkg?]
 >which includes most of the sV functionality, including dialup passwds
 >and /etc/issue.

This is comp.unix.solaris where I am reading this.  99% of the posts here
deal with Sol 2.x, which is SYSV.  /etc/issue in 2.4 now works just fine,
with all connections, including telnet.  If you are on SunOS 4.x, you can
rename in.telnetd to in.telnetd.BIN, create a script named in.telnetd which
echos the desired message, or cats /etc/issue, or whatever you want, then
execs the real in.telnetd.

 >--
 >           |                               PRIORITIES
 >Andrew Hay |       URGENT          get someone else to do it right away

 >           |       ASAP            whenever...

--
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)810-762-9765   ___________________
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.    /   _____  ______

  Web admin:  chimera,nn,tin,jove,kermit - free's best!/________/ /  /  / /

 
 
 

Pre-Login Message ... How ???

Post by Barry Keen » Mon, 07 Aug 1995 04:00:00




: > >"
: > >": Is it possible to send a pre-login message using the SunOS?  It seems to

: How about simply putting the message in /etc/gettytab? It works just
: fine for me.

  How do you make a entry in /etc/gettytab to do this?

--

Barry Keeney              SFB junkie, until something better comes along.

 
 
 

Pre-Login Message ... How ???

Post by Frank DiGenna » Mon, 07 Aug 1995 04:00:00




>: How about simply putting the message in /etc/gettytab? It works just
>: fine for me.

>  How do you make a entry in /etc/gettytab to do this?

Granted, this works best if you have only a few lines of text to display.
Try this:

default:\
        :ap:lm=\r\nWelcome to FredNet!\r\nNew users login as guest\r\nlogin\72 :sp#38400:

--
Frank DiGennaro                 301-631-5300 voice, 301-631-5303 Fax
Network Manager, FredNet        301-698-5006 Dialup in Frederick, Md.

 "All problems in life get simpler after some rigatoni and meatballs." - Nana

 
 
 

Pre-Login Message ... How ???

Post by R. Stewart Ell » Wed, 09 Aug 1995 04:00:00




 >>
 >>: How about simply putting the message in /etc/gettytab? It works just
 >>: fine for me.
 >>
 >>  How do you make a entry in /etc/gettytab to do this?
 >>

 >Granted, this works best if you have only a few lines of text to display.
 >Try this:

 >default:\
 >   :ap:lm=\r\nWelcome to FredNet!\r\nNew users login as guest\r\nlogin\72 :sp#38400:

As I said in another message, this only works on real serial ports and the
console.  I just did a telnet to bigdog, which I am not sure is the machine
with this in gettytab, and I got the following:

[34](64)_nova_ellis_/faculty/ellis/public_html/directory> telnet bigdog.fred.net
Trying 204.215.84.2 ...
Connected to bigdog.fred.net.
Escape character is '^]'.

SunOS UNIX (bigdog)

login:

I just tried fred.net as well, and it is an alias for bigdog.

 >--
 >Frank DiGennaro                 301-631-5300 voice, 301-631-5303 Fax
 >Network Manager, FredNet   301-698-5006 Dialup in Frederick, Md.

 > "All problems in life get simpler after some rigatoni and meatballs." - Nana
--
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)810-762-9765   ___________________
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.    /   _____  ______

  Web admin:  chimera,nn,tin,jove,kermit - free's best!/________/ /  /  / /

 
 
 

1. pre-login message

I want telnet connections to see something like this:
====
UofI Computing Services Office - Sequent S81 (uxa.cso.uiuc.edu - ttytU)
UNIX Free Student System        running DYNIX(R) V3.1.1

login:
==== right now they see: ====
Linux 0.99.14 (doh) (ttyp1)

login:
====

If logging on from a console tty, the /etc/issue notice is displayed.
What can I do to set up a similar arrangement that telnetd will display?

thanks,
- Ryan Grant

2. Su permissions

3. Pre-login message (/etc/issue)

4. Follow up to - [KSH] New Issue

5. CHANGE PRE-LOGIN MESSAGE

6. Reading is much more interesting than TV (0186/1708)

7. Pre Login Message - getting closer

8. Is Linux for Writers?

9. Pre login message

10. Pre-Login and Login Messages?

11. ftpd - how do I config the PRE-LOGIN welcome message to come up

12. changing the message LOGIN gives (pre-logging in)