🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: at.fido.linux
Article #219

modify linux' login prompt??

#219
From: Sebastian Kienzl
Date: Sun, 08 Mar 1998 00:00
32 lines
1733 bytes
Hi Ingmar...

Am 06 Mar 98 schrieb Ingmar Greil an All:

 IG> hello world,
 IG> wie modifiziere ich meinen login prompt?
 IG> momentan habe ich 'hostname login:', ganz konkret moechte ich die
 IG> angabe des hostnamens unterdruecken. "issue" und "motd" habe ich
 IG> gefunden, aber es muss noch eine weiter konfigurationsdatei geben :(
 IG> any ideas anybody?

klar.

ich nehme mal an, du verwendest mingetty...mingetty.c muss gepatcht werden!

mingetty.c:

das
#define LOGIN " login:"
aenderst auf
#define LOGIN "login:"
um und nimmst in der prozedur do_prompt() die zeile
write (1, hn, strlen (hn));
raus.

compilen, /sbin/mingetty loeschen, neue version hinkopieren, ferdig!

Bei anderen getties (die meistens /bin/login aufrufen) einfach im source vom
shadow-system src/login.c LOGIN_PROMPT umdefinieren.

mf-g, sebastian k. [aer]
Technical Details
Message-ID: <MSGID_2=3A317=2F11.18_35027590@fidonet.org>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34ffb3dc.201147@news.univie.ac.at>

Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII-7-bit
X-Google-Thread: 109314,efb5cd7693b668b
X-Google-Attributes: gid109314,public
From: Sebastian.Kienzl@2-317-11-18.kkb.co.at (Sebastian Kienzl)
Subject: modify linux' login prompt??
Date: 1998/03/08
Message-ID: <MSGID_2=3A317=2F11.18_35027590@fidonet.org>
X-Deja-AN: 332557737
Content-Transfer-Encoding: 7bit
X-FTN-Origin: we gotta take the power back (2:317/11.18)
References: <34ffb3dc.201147@news.univie.ac.at>
X-FTN-Path: 317/11 1 318/1 6 310/65 3 39
X-Comment-To: (Apply ROT13 n9400733)
X-FTN-Tearline: traenenzeile?!
X-FTN-Domain: Z2@fidonet
X-Gateway: FIDO .. kkb.co.at [FIDOGATE 4.1.5]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-FTN-Seen-By: 318/10 11 382/111
Organization: Info: e-mail to gateinfo@kkb.co.at or http://wdrittel.kkb.co.at/gateinfo.html
Newsgroups: at.fido.linux