Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* /etc/issue?
@ 1997-10-06  4:00 David Alban
  1997-10-07  4:00 ` /etc/issue? Joe Spanicek
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: David Alban @ 1997-10-06  4:00 UTC (permalink / raw)



Greetings!

In some unixes the file /etc/issue is displayed after telnet and ftp
connections are made but before the user logs in.  I have an Alpha
running "OSF1 V3.2".  I have created an /etc/issue file, but it seems to
be ignored.  Can anyone tell me how to display a message (you know like,
"If you're not supposed to log in, and you do, you'll begin to itch
uncontrollably" :-) to users who have connected and are about to log in
or ftp in?

Thanks,
david.alban@gsfc.nasa.gov

P.S.  I've searched online documentation, but it's not intuitively
obvious to me in exactly what section to look.
---
Whom computers would destroy, they must first drive mad.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /etc/issue?
  1997-10-06  4:00 /etc/issue? David Alban
  1997-10-07  4:00 ` /etc/issue? Joe Spanicek
@ 1997-10-07  4:00 ` Phil Edwards
  1997-10-07  4:00 ` /etc/issue? Mark Gelinas
  2 siblings, 0 replies; 7+ messages in thread
From: Phil Edwards @ 1997-10-07  4:00 UTC (permalink / raw)



[cc'd to poster]
[followups slightly trimmed]


David Alban  <david.alban@gsfc.nasa.gov> wrote:
[snip /etc/issue]
+ be ignored.  Can anyone tell me how to display a message (you know like,
+ "If you're not supposed to log in, and you do, you'll begin to itch
+ uncontrollably" :-) to users who have connected and are about to log in
+ or ftp in?


dUnix doesn't pay attention to the /etc/issue file.  I dunno about ftp, but
for telnet, you can change the "login:" prompt given in /etc/gettydefs.
Here's a snip from ours (nonindented):

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
default#B9600#B9600# %v(%h)\r\n\r\n Wright State University -- Unauthorized use prohibited \r\n \
\
\n\r#default

console# B9600 HUPCL CS8 CLOCAL # B9600 SANE IXANY TAB3 CLOCAL #\r\n\r\n%v (%h) %t\r\n\r\n\rlogin: #console
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+

When I telnet to one of these boxes (assuming telnetd can't determine a
default USER env setting), I see this:

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
Connected to gamma.cs.wright.edu.
Escape character is '^]'.
 (gamma.cs.wright.edu)

 Wright State University -- Unauthorized use prohibited

login: <insert favorite blinking cursor here>
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+

Luck++;
/dev/phil

=> If you post a followup, please don't email a copy to me.  I read news
    often enough that replying to things twice is annoying.  But thanks.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /etc/issue?
  1997-10-06  4:00 /etc/issue? David Alban
  1997-10-07  4:00 ` /etc/issue? Joe Spanicek
  1997-10-07  4:00 ` /etc/issue? Phil Edwards
@ 1997-10-07  4:00 ` Mark Gelinas
  1997-10-09  4:00   ` /etc/issue? Finn Rasmussen
  2 siblings, 1 reply; 7+ messages in thread
From: Mark Gelinas @ 1997-10-07  4:00 UTC (permalink / raw)



In article <34396F50.41C6@gsfc.nasa.gov> David Alban <david.alban@gsfc.nasa.gov> writes:

> In some unixes the file /etc/issue is displayed after telnet and ftp
> connections are made but before the user logs in.  I have an Alpha
> running "OSF1 V3.2".  I have created an /etc/issue file, but it seems to
> be ignored.  Can anyone tell me how to display a message (you know like,
> "If you're not supposed to log in, and you do, you'll begin to itch
> uncontrollably" :-) to users who have connected and are about to log in
> or ftp in?

Well, I checked and found the following:

man issue
  - works on terminals spawned from /etc/inittab, read by getty daemon
    (usually LAT terminals, not telnet connections)

man issue.net
  - works on terminals opened by telnetd, read by telnetd

man gettydefs
  - a message < 79 characters can be output to a defined terminal

man telnetd
  - quote from man page:

 "By default, the telnetd daemon starts the login dialog using the login
  string specified in the message field of the /etc/gettydefs file.  If an
  /etc/issue.net file present, telnetd reads the file and writes its contents
  over a new telnet connection prior to starting the login dialog.  If an
  /etc/issue file is present, but not a /etc/issue.net file, telnetd reads
  that file and writes its contents over a new telnet connection instead."

The last line appears to be in error, as it conflicts with the descriptions
from the issue(4) and issue.net(4) name pages.

man ftpd
  - no information found on setting messages for the ftp service



To sum up - change the file name from issue to issue.net, and telnet
should get a message now.


MarkG-- 
Mark Gelinas                         Digital Equipment Corporation 
EMail: gelinas@zk3.dec.com           110 Spit Brook Road, ZKO3-3/V08
Phone: +1 (603) 884-1511             Nashua, NH 03062-2698  USA



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /etc/issue?
  1997-10-06  4:00 /etc/issue? David Alban
@ 1997-10-07  4:00 ` Joe Spanicek
  1997-10-07  4:00 ` /etc/issue? Phil Edwards
  1997-10-07  4:00 ` /etc/issue? Mark Gelinas
  2 siblings, 0 replies; 7+ messages in thread
From: Joe Spanicek @ 1997-10-07  4:00 UTC (permalink / raw)



David Alban wrote:
> 
> Greetings!
> 
> In some unixes the file /etc/issue is displayed after telnet and ftp
> connections are made but before the user logs in.  I have an Alpha
> running "OSF1 V3.2".  I have created an /etc/issue file, but it seems to
> be ignored.  Can anyone tell me how to display a message (you know like,
> "If you're not supposed to log in, and you do, you'll begin to itch
> uncontrollably" :-) to users who have connected and are about to log in
> or ftp in?
> 
> Thanks,
> david.alban@gsfc.nasa.gov
> 
> P.S.  I've searched online documentation, but it's not intuitively
> obvious to me in exactly what section to look.
> ---
> Whom computers would destroy, they must first drive mad.


Hi,

I believe '/etc/issue' is only usable in DU4.x systems.

Joe



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /etc/issue?
  1997-10-07  4:00 ` /etc/issue? Mark Gelinas
@ 1997-10-09  4:00   ` Finn Rasmussen
  1997-10-10  4:00     ` /etc/issue? Mark Gelinas
  1997-10-10  4:00     ` /etc/issue? Joe Spanicek
  0 siblings, 2 replies; 7+ messages in thread
From: Finn Rasmussen @ 1997-10-09  4:00 UTC (permalink / raw)



On 7 Oct 1997, Mark Gelinas wrote:

> In article <34396F50.41C6@gsfc.nasa.gov> David Alban <david.alban@gsfc.nasa.gov> writes:
> 
> > In some unixes the file /etc/issue is displayed after telnet and ftp
> > connections are made but before the user logs in.
> > [snip ..]
> 
> Well, I checked and found the following:
> 
> man issue
>   - works on terminals spawned from /etc/inittab, read by getty daemon
>     (usually LAT terminals, not telnet connections)
> 
> man issue.net
>   - works on terminals opened by telnetd, read by telnetd
> 
> man gettydefs
>   - a message < 79 characters can be output to a defined terminal
> 
> man telnetd
>   - quote from man page:
> 
>  "By default, the telnetd daemon starts the login dialog using the login
>   string specified in the message field of the /etc/gettydefs file.  If an
>   /etc/issue.net file present, telnetd reads the file and writes its contents
>   over a new telnet connection prior to starting the login dialog.  If an
>   /etc/issue file is present, but not a /etc/issue.net file, telnetd reads
>   that file and writes its contents over a new telnet connection instead."
> 
> The last line appears to be in error, as it conflicts with the descriptions
> from the issue(4) and issue.net(4) name pages.
> 
> man ftpd
>   - no information found on setting messages for the ftp service
> 
> 
> 
> To sum up - change the file name from issue to issue.net, and telnet
> should get a message now.
> 

  What kind of Dunix are you on? The manpages of my Dunix (3.2G) doesn't
know anything about issue or issue.net. Further, following your advice I
created a /etc/issue.net file -- BUT telnet doesn't display this file. So
the original question is still open, I would say.

      o o o o o o o . . .   _~~~__~~~~~~~~~~~~~~~~\_ _~~~~~~~~~~~~~~~\_
    o      _____            |  /__  Finn Rasmussen | |  Chem. Dept.  |
  .][__n_n_|DD[  ====_____  |  __/ fra@kemi.aau.dk | | Aarhus Univ.  |
 >(________|__|_[_________]_|______________________|_|_______________|_
 _/oo OOOOO oo`  ooo   ooo  'o^o^o            o^o^o` 'o^o         o^o`
========================================================================

  




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /etc/issue?
  1997-10-09  4:00   ` /etc/issue? Finn Rasmussen
  1997-10-10  4:00     ` /etc/issue? Mark Gelinas
@ 1997-10-10  4:00     ` Joe Spanicek
  1 sibling, 0 replies; 7+ messages in thread
From: Joe Spanicek @ 1997-10-10  4:00 UTC (permalink / raw)



Finn Rasmussen wrote:
> 
> On 7 Oct 1997, Mark Gelinas wrote:
> 
> > In article <34396F50.41C6@gsfc.nasa.gov> David Alban <david.alban@gsfc.nasa.gov> writes:
> >
> > > In some unixes the file /etc/issue is displayed after telnet and ftp
> > > connections are made but before the user logs in.
> > > [snip ..]
> >
> > Well, I checked and found the following:
> >
> > man issue
> >   - works on terminals spawned from /etc/inittab, read by getty daemon
> >     (usually LAT terminals, not telnet connections)
> >
> > man issue.net
> >   - works on terminals opened by telnetd, read by telnetd
> >
> > man gettydefs
> >   - a message < 79 characters can be output to a defined terminal
> >
> > man telnetd
> >   - quote from man page:
> >
> >  "By default, the telnetd daemon starts the login dialog using the login
> >   string specified in the message field of the /etc/gettydefs file.  If an
> >   /etc/issue.net file present, telnetd reads the file and writes its contents
> >   over a new telnet connection prior to starting the login dialog.  If an
> >   /etc/issue file is present, but not a /etc/issue.net file, telnetd reads
> >   that file and writes its contents over a new telnet connection instead."
> >
> > The last line appears to be in error, as it conflicts with the descriptions
> > from the issue(4) and issue.net(4) name pages.
> >
> > man ftpd
> >   - no information found on setting messages for the ftp service
> >
> >
> >
> > To sum up - change the file name from issue to issue.net, and telnet
> > should get a message now.
> >
> 
>   What kind of Dunix are you on? The manpages of my Dunix (3.2G) doesn't
> know anything about issue or issue.net. Further, following your advice I
> created a /etc/issue.net file -- BUT telnet doesn't display this file. So
> the original question is still open, I would say.
> 
>       o o o o o o o . . .   _~~~__~~~~~~~~~~~~~~~~\_ _~~~~~~~~~~~~~~~\_
>     o      _____            |  /__  Finn Rasmussen | |  Chem. Dept.  |
>   .][__n_n_|DD[  ====_____  |  __/ fra@kemi.aau.dk | | Aarhus Univ.  |
>  >(________|__|_[_________]_|______________________|_|_______________|_
>  _/oo OOOOO oo`  ooo   ooo  'o^o^o            o^o^o` 'o^o         o^o`
> ========================================================================
> 
> 

I believe Digital Unix 4.x and up have these features. I know
'/etc/issue' works because I tried it on DU4.0. Do not know about the
others.

Joe



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /etc/issue?
  1997-10-09  4:00   ` /etc/issue? Finn Rasmussen
@ 1997-10-10  4:00     ` Mark Gelinas
  1997-10-10  4:00     ` /etc/issue? Joe Spanicek
  1 sibling, 0 replies; 7+ messages in thread
From: Mark Gelinas @ 1997-10-10  4:00 UTC (permalink / raw)



In article <Pine.OSF.3.95.971009113025.7284A-100000@kemi.aau.dk> Finn Rasmussen <fra@kemi.aau.dk> writes:

   On 7 Oct 1997, Mark Gelinas wrote:

   > In article <34396F50.41C6@gsfc.nasa.gov> David Alban <david.alban@gsfc.nasa.gov> writes:
   > 
   > > In some unixes the file /etc/issue is displayed after telnet and ftp
   > > connections are made but before the user logs in.
   > > [snip ..]
   > 
   > Well, I checked and found the following:
   > 
   > man issue
   >   - works on terminals spawned from /etc/inittab, read by getty daemon
   >     (usually LAT terminals, not telnet connections)
   > 
   > man issue.net
   >   - works on terminals opened by telnetd, read by telnetd
   > 
   > man gettydefs
   >   - a message < 79 characters can be output to a defined terminal
   > 
   > man telnetd
   >   - quote from man page:
   > 
   >  "By default, the telnetd daemon starts the login dialog using the login
   >   string specified in the message field of the /etc/gettydefs file.  If an
   >   /etc/issue.net file present, telnetd reads the file and writes its contents
   >   over a new telnet connection prior to starting the login dialog.  If an
   >   /etc/issue file is present, but not a /etc/issue.net file, telnetd reads
   >   that file and writes its contents over a new telnet connection instead."
   > 
   > The last line appears to be in error, as it conflicts with the descriptions
   > from the issue(4) and issue.net(4) name pages.
   > 
   > man ftpd
   >   - no information found on setting messages for the ftp service
   > 
   > 
   > 
   > To sum up - change the file name from issue to issue.net, and telnet
   > should get a message now.
   > 

     What kind of Dunix are you on? The manpages of my Dunix (3.2G) doesn't
   know anything about issue or issue.net. Further, following your advice I
   created a /etc/issue.net file -- BUT telnet doesn't display this file. So
   the original question is still open, I would say.

My apologies to the original poster - I failed to notice they wanted a
3.2x solution. My notes were from 4.0 (4.0B to be exact). For 3.2x, you
are limited to modifying gettydefs.

An alternate (ie. non-Digital shipped) solution would be to install
TCP wrappers and use the banners feature.

  ftp://ftp.win.tue.nl/pub/security/tcp-wrappers-7.6.tar.gz

MarkG
-- 
Mark Gelinas                         Digital Equipment Corporation 
EMail: gelinas@zk3.dec.com           110 Spit Brook Road, ZKO3-3/V08
Phone: +1 (603) 884-1511             Nashua, NH 03062-2698  USA



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1997-10-10  4:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-10-06  4:00 /etc/issue? David Alban
1997-10-07  4:00 ` /etc/issue? Joe Spanicek
1997-10-07  4:00 ` /etc/issue? Phil Edwards
1997-10-07  4:00 ` /etc/issue? Mark Gelinas
1997-10-09  4:00   ` /etc/issue? Finn Rasmussen
1997-10-10  4:00     ` /etc/issue? Mark Gelinas
1997-10-10  4:00     ` /etc/issue? Joe Spanicek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox