public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] /etc/issue information
@ 2006-02-27 15:44 Marco Calviani
  2006-02-27 16:42 ` Willie Wong
  2006-02-27 17:00 ` Richard Fish
  0 siblings, 2 replies; 7+ messages in thread
From: Marco Calviani @ 2006-02-27 15:44 UTC (permalink / raw
  To: gentoo-user

Hi list,
   using this page of the gentoo wiki http://gentoo-wiki.com/TIP_Console_Prompt
i'm trying to use the /etc/issue file.

After having enabled the file in the /etc/ssh/sshd_config file with

Banner /etc/issue

file i've observed that effectively the system shows the "welcome" string.
However i'm not seeing the effective system name, kernel etc.... but only this:

This is \n.\O (\s \m \r) \t

Password:

it seems that the escape character is not correctly identified.

What i'm doing wrong?

Regards,
MC

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] /etc/issue information
  2006-02-27 15:44 [gentoo-user] /etc/issue information Marco Calviani
@ 2006-02-27 16:42 ` Willie Wong
  2006-02-27 17:00 ` Richard Fish
  1 sibling, 0 replies; 7+ messages in thread
From: Willie Wong @ 2006-02-27 16:42 UTC (permalink / raw
  To: gentoo-user

On Mon, Feb 27, 2006 at 04:44:19PM +0100, Penguin Lover Marco Calviani squawked:
> file i've observed that effectively the system shows the "welcome" string.
> However i'm not seeing the effective system name, kernel etc.... but only this:
> 
> This is \n.\O (\s \m \r) \t
> 
> Password:
> 
> it seems that the escape character is not correctly identified.
> 

Not an answer, but an observation on my part of a similar behaviour:

On my box, the "first" load of the issue would display the right thing
(substituting the proper text for all the escape characters), but if, 
say, I type in an invalid username/password combo, login will wait a
few seconds (like it is told to do) and display the banner again. But
this time, the escaped characters will be displayed like what you
have there. But if I once again log-in correctly, and then log-out,
the banner displayed on that VC would be correct again. 

I can't figure out what's wrong either. 

W
-- 
Man, I broke my G string trying to finger a minor... 
  Now my guitar is useless.
Sortir en Pantoufles: up 107 days,  9:03
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] /etc/issue information
  2006-02-27 15:44 [gentoo-user] /etc/issue information Marco Calviani
  2006-02-27 16:42 ` Willie Wong
@ 2006-02-27 17:00 ` Richard Fish
  2006-02-27 18:43   ` Marco Calviani
  1 sibling, 1 reply; 7+ messages in thread
From: Richard Fish @ 2006-02-27 17:00 UTC (permalink / raw
  To: gentoo-user

On 2/27/06, Marco Calviani <marco.calviani@gmail.com> wrote:
> After having enabled the file in the /etc/ssh/sshd_config file with
>
> Banner /etc/issue
>
> file i've observed that effectively the system shows the "welcome" string.
> However i'm not seeing the effective system name, kernel etc.... but only this:
>
> This is \n.\O (\s \m \r) \t
>
> Password:
>
> it seems that the escape character is not correctly identified.
>
> What i'm doing wrong?

Those escape characters are recognized only by the getty program,
which is used for console logins.  You should still be able to use the
color setting escape sequences, since those are terminal escapes.  But
the substitution stuff is getty specific, and will not work with ssh.

-Richard

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] /etc/issue information
  2006-02-27 17:00 ` Richard Fish
@ 2006-02-27 18:43   ` Marco Calviani
  2006-02-27 19:45     ` Richard Fish
  2006-02-27 20:31     ` Greg Bur
  0 siblings, 2 replies; 7+ messages in thread
From: Marco Calviani @ 2006-02-27 18:43 UTC (permalink / raw
  To: gentoo-user

Hi Richard,

> Those escape characters are recognized only by the getty program,
> which is used for console logins.  You should still be able to use the
> color setting escape sequences, since those are terminal escapes.  But
> the substitution stuff is getty specific, and will not work with ssh.

thanks for sharing this info. It comes completely new for me. So, as
far as i understand, there is no way of having this info with ssh
login? Am i right?

Thanks,
MC

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] /etc/issue information
  2006-02-27 18:43   ` Marco Calviani
@ 2006-02-27 19:45     ` Richard Fish
  2006-02-27 20:15       ` Willie Wong
  2006-02-27 20:31     ` Greg Bur
  1 sibling, 1 reply; 7+ messages in thread
From: Richard Fish @ 2006-02-27 19:45 UTC (permalink / raw
  To: gentoo-user

On 2/27/06, Marco Calviani <marco.calviani@gmail.com> wrote:
> Hi Richard,
>
> > Those escape characters are recognized only by the getty program,
> > which is used for console logins.  You should still be able to use the
> > color setting escape sequences, since those are terminal escapes.  But
> > the substitution stuff is getty specific, and will not work with ssh.
>
> thanks for sharing this info. It comes completely new for me. So, as
> far as i understand, there is no way of having this info with ssh
> login? Am i right?

The current time will be difficult.  But you could create a file (like
/etc/issue.ssh) with the rest of the information in it:

echo "This is `hostname`.`hostname -d` ( `uname -s` `uname -m` `uname
-r` )" > /etc/issue.ssh

You could put the above in local.start to update the hostname or
kernel version information at each boot.

-Richard

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] /etc/issue information
  2006-02-27 19:45     ` Richard Fish
@ 2006-02-27 20:15       ` Willie Wong
  0 siblings, 0 replies; 7+ messages in thread
From: Willie Wong @ 2006-02-27 20:15 UTC (permalink / raw
  To: gentoo-user

On Mon, Feb 27, 2006 at 12:45:58PM -0700, Penguin Lover Richard Fish squawked:
> The current time will be difficult.  But you could create a file (like
> /etc/issue.ssh) with the rest of the information in it:
> 
> echo "This is `hostname`.`hostname -d` ( `uname -s` `uname -m` `uname
> -r` )" > /etc/issue.ssh
> 
> You could put the above in local.start to update the hostname or
> kernel version information at each boot.
> 

IIRC, another choice is to emerge linux-logo. I believe it comes with 
a init.d script that does precisely that. And you can program in an
ANSI/ASCII banner while you are at it. 

W
-- 
So there was an argument over what type of engineer God was, to have
created man. Some suggested Electrical Engineer, given the complex
neural network, others suggested Mechanical Engineer, given the
amazing mechanics of the body. It was finally realized that he was a
Civil Engineer, as only a Civ. E. would put an waste management
facility in a recreational area.
Sortir en Pantoufles: up 107 days, 12:37
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] /etc/issue information
  2006-02-27 18:43   ` Marco Calviani
  2006-02-27 19:45     ` Richard Fish
@ 2006-02-27 20:31     ` Greg Bur
  1 sibling, 0 replies; 7+ messages in thread
From: Greg Bur @ 2006-02-27 20:31 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 677 bytes --]

On 2/27/06, Marco Calviani <marco.calviani@gmail.com> wrote:
>
> Hi Richard,
>
> > Those escape characters are recognized only by the getty program,
> > which is used for console logins.  You should still be able to use the
> > color setting escape sequences, since those are terminal escapes.  But
> > the substitution stuff is getty specific, and will not work with ssh.
>
> thanks for sharing this info. It comes completely new for me. So, as
> far as i understand, there is no way of having this info with ssh
> login? Am i right?
>

Look and see if you have an /etc/issue.net

All of my old RedHat boxes used that file to display a logon banner via
ssh.

[-- Attachment #2: Type: text/html, Size: 995 bytes --]

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

end of thread, other threads:[~2006-02-27 20:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-27 15:44 [gentoo-user] /etc/issue information Marco Calviani
2006-02-27 16:42 ` Willie Wong
2006-02-27 17:00 ` Richard Fish
2006-02-27 18:43   ` Marco Calviani
2006-02-27 19:45     ` Richard Fish
2006-02-27 20:15       ` Willie Wong
2006-02-27 20:31     ` Greg Bur

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