heh. A bit too much script programming lately. I'll try again --- mingetty.c.old Thu Nov 15 23:46:17 2001 +++ mingetty.c Thu Nov 15 23:46:47 2001 @@ -612,7 +612,7 @@ close (fd); } #endif - write (1, hn, strlen (hn)); +/* write (1, hn, strlen (hn)); */ write (1, LOGIN, sizeof (LOGIN) - 1); } On Thursday 15 November 2001 23:49, Anders Johansson wrote:
Isn't it mingetty that's used to print the message?
I'd suggest (in mingetty.c from sysvinit.spm
--- mingetty.c.old Thu Nov 15 23:46:17 2001 +++ mingetty.c Thu Nov 15 23:46:47 2001 @@ -612,7 +612,7 @@ close (fd); } #endif - write (1, hn, strlen (hn)); +# write (1, hn, strlen (hn)); write (1, LOGIN, sizeof (LOGIN) - 1); }
On Thursday 15 November 2001 23:42, Christopher Mahmood wrote:
* Cleary_Mike@emc.com (Cleary_Mike@emc.com) [011115 14:05]:
How does one remove "hostname" from the login prompt? We need it to just be:
login:
Hmmm, good question. I don't think this configuarable, but here's a patch for login.c (from the shadow package) that does what you want (untested):
--- login.c.old Thu Nov 15 14:37:35 2001 +++ login.c Thu Nov 15 14:40:54 2001 @@ -731,14 +731,8 @@ char login_prompt[256]; /* That's one hell of a prompt :) */
/* Make the login prompt look like we want it */ - - if (!gethostname(hostn, sizeof(hostn))) - snprintf(login_prompt, sizeof(login_prompt), - "%s login: ", hostn); - else snprintf(login_prompt, sizeof(login_prompt), "login: "); - retcode = pam_set_item(pamh, PAM_USER_PROMPT, login_prompt); PAM_FAIL_CHECK;