Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Mark Greene <greenemj@hlthsrc.com>
To: Davide Fella <fella@cisi.unito.it>
Subject: Re: terminal problems during login on DU 4.0a
Date: 1997/02/11	[thread overview]
Message-ID: <3300B799.4309@hlthsrc.com> (raw)
In-Reply-To: 5dn8vs$99e@galileo.polito.it


Davide Fella wrote:
> 
> hello,
> I have this problem: when the user "telnets" to my server, he receive this:
> 
> Digital Unix (hostname) (tty)
> 
> login:
> 
> 1) I'd like to write something else there, for example
> Digital Unix (hostname) (tty)
> Benvenuti
> Welcome
> ...   etc.
> 
> login:
> 
> Where is the file to config this?
> 
> Please don't suggest me /etc/gettydefs because this works only with serial
> connections and now I'm looking for network connections.
> 
> 2) When somebody logs in the server, if he makes type mistakes cannot delete
> with backspace:
> 
> Digital Unix (hostname) (tty)
> 
> login:userrr^H^H^H
> 
> ... he receives only  ^H
> 
> Putting stty erase ^H in .login or .profile works only if the user is already
> logged in.
> 
> thanks,
> Davide Fella

The order of events during login is as follows:

1. /etc/getty is started on PID to establish generic Terminal
2. /etc/login validates User ID and Password against /etc/passwd file
3. The working directory for the PID is set to the value for the User ID 
specified in the /ect/passwd file
4. The shell speficed in the /etc/passwd file for the User Id is started, 
using the parameters specified in the /.profile or the /.login file in 
the user's home directory (from step 3).

There is also a /etc/.login and /etc/.profile that are used. I'm not sure 
if this is done at step 1, or at step 2; you may want to put the stty 
erase ^H in there and see if it makes a difference.

As for the logon prompt, I am not sure if that is in a file, or if it is 
hardcoded into the kernal.  There is /etc/motd (message of the day) which 
should be displayed via /etc/.login and /ect/.profile.  You can change 
the contents of this file to display whatever you want; just make sure to 
put in a 2-3 second delay in the /home/.login and /home/.profile scripts 
so that is can be read!

MJG



  reply	other threads:[~1997-02-11  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-10  5:00 terminal problems during login on DU 4.0a Davide Fella
1997-02-11  5:00 ` Mark Greene [this message]
1997-02-18  5:00 ` Joe Spanicek
read-only archive

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