Thanks! Even though I am not a programmer (and didn't understand a lot of
what
I saw in mingetty.c) I tried this at home last night & it worked after I
made a slight
change in the following section:
#endif
* write (1, hn, strlen (hn));
* if(!nohostname){
* write (1, hn, strlen (hn));
* write (1, " ", 1);
+ }
write (1, LOGIN, sizeof (LOGIN) - 1);
}
If I used it as above, the login prompt looked like "hostnamehostname
login:"
So I took out both "write (1, hn, strlen (hn))" lines and this seems to
work.
However, I found out that if I give an incorrect login name or password, the
login prompt goes back to "hostname login:". I looked to see if I could
find
where the error checking was, but no luck.
Anyway, I still think this will work for us, so I've done the same thing on
our
test box. Thanks again for all the help!
Mike
------------------------------------------------------
Cleary_Mike@emc.com
------------------------------------------------------
It said ... "Requires Windows 95 or better...", so I installed Linux......
-----Original Message-----
From: Anders Johansson [mailto:andjoh@cicada.linux-site.net]
Sent: Thursday, November 15, 2001 6:31 PM
To: suse-linux-e@suse.com
Subject: Re: [SLE] login prompt
I had nothing better to do :) Perhaps this could be useful. I tested it and
it seemed to work, but as always, no guarantees. It adds an option
--no-hostname to mingetty
There's a lot more one could do to this program. As for instance do away
with
some of the hardcoded values (do non-english speaking people really want
'login'?). If it is of interest I may just do it.
regards
Anders
--- mingetty.c.old Thu Nov 15 23:46:17 2001
+++ mingetty.c Fri Nov 16 00:26:11 2001
@@ -113,7 +113,7 @@
#include
Thanks guys! And test it we will... I'm passing the info on as we speak. :)
I'll post back what works (may not be until tomorrow..)
Mike ------------------------------------------------------ Cleary_Mike@emc.com ----------------------------------------------------- A redneck's famous last words... " Hey y'all, watch this!"
-----Original Message----- From: Christopher Mahmood [mailto:ckm@suse.com] Sent: Thursday, November 15, 2001 6:03 PM To: suse-linux-e@suse.com Subject: Re: [SLE] login prompt
* Anders Johansson (andjoh@cicada.linux-site.net) [011115 14:49]:
Isn't it mingetty that's used to print the message?
I thought that stuff was just for formatting what's in /etc/issue? Let's wait for the original poster to test it for us :)
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Saturday 17 November 2001 01:38, Cleary_Mike@emc.com wrote:
However, I found out that if I give an incorrect login name or password, the
login prompt goes back to "hostname login:". I looked to see if I could find where the error checking was, but no luck.
Yeah, missed that. The mingetty program displays the first string and gets the user name, and then passes on to the /bin/login program which handles the display for all subsequent tries. So with these programs you'd have to make both my and Christopher's changes. regards Anders
participants (2)
-
Anders Johansson
-
Cleary_Mike@emc.com