From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,75e427e25f80db4f X-Google-Attributes: gidfee84,public From: Mark Greene Subject: Re: terminal problems during login on DU 4.0a Date: 1997/02/11 Message-ID: <3300B799.4309@hlthsrc.com>#1/1 X-Deja-AN: 218061205 references: <5dn8vs$99e@galileo.polito.it> to: Davide Fella content-type: text/plain; charset=us-ascii organization: Healthsource, Inc. mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.02 (Win16; I) 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