Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* terminal problems during login on DU 4.0a
@ 1997-02-10  5:00 Davide Fella
  1997-02-11  5:00 ` Mark Greene
  1997-02-18  5:00 ` Joe Spanicek
  0 siblings, 2 replies; 3+ messages in thread
From: Davide Fella @ 1997-02-10  5:00 UTC (permalink / raw)



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





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

* Re: terminal problems during login on DU 4.0a
  1997-02-10  5:00 terminal problems during login on DU 4.0a Davide Fella
@ 1997-02-11  5:00 ` Mark Greene
  1997-02-18  5:00 ` Joe Spanicek
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Greene @ 1997-02-11  5:00 UTC (permalink / raw)
  To: Davide Fella


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



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

* Re: terminal problems during login on DU 4.0a
  1997-02-10  5:00 terminal problems during login on DU 4.0a Davide Fella
  1997-02-11  5:00 ` Mark Greene
@ 1997-02-18  5:00 ` Joe Spanicek
  1 sibling, 0 replies; 3+ messages in thread
From: Joe Spanicek @ 1997-02-18  5:00 UTC (permalink / raw)
  To: Davide Fella


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

Under DU4.0 you can use the '/etc/issue' file similar to '/etc/motd'.
Just put the text of what you want into this file.

Joe Spanicek
joe@resptk.bhp.com.au



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

end of thread, other threads:[~1997-02-18  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-10  5:00 terminal problems during login on DU 4.0a Davide Fella
1997-02-11  5:00 ` Mark Greene
1997-02-18  5:00 ` Joe Spanicek

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