1844817 Members
2099 Online
110233 Solutions
New Discussion

Logon problem

 
Mauro_8
Frequent Advisor

Logon problem

Hi,

I??m trouble when I try to logon as a user called user1. I did :
%su - user1
password:

But when the logon occurs I have to type ENTER to show the prompt (%), if I don??t type ENTER the displays shows the following message: "Rights for non-DOD U.S. Government Departments and Agencies are as set
forth in FAR 52.227-19(c)(1,2).
You have mail.
TERM = (hp)" and wait for ENTER. If I type somethinf different from enter it stay in the same line as TERM = (hp) in the message, for example, if I type TEST then enter it shows TERM = (hp) TEST and after enter:
"TERM = (hp) TEST
Type test unknown"

It should be something in my .cshrc, Am I right ?

Cheers,
Mauro
8 REPLIES 8
Christopher McCray_1
Honored Contributor

Re: Logon problem

Hello,

It looks like it can't decide what type of terminal emulation your window is using. By hitting enter you are accepting the termtype "hp". You can also type in vt100, vt220, etc. to change this. You may want to define the user's TERM variable in the .cshrc


Hope this helps

Chris
It wasn't me!!!!
Larry Reinhart
Advisor

Re: Logon problem

Hi Mauro,

Do you have a ttytype command with the -p option in the .cshrc file? That option will prompt the user for the terminal type. Usually you can just set the terminal type with a 'tset -s -Q' command. Check the man pages on ttytype.

Have a GREAT HP day!
Larry :-)
Mauro_8
Frequent Advisor

Re: Logon problem

Hi,

I put in the last line of my /home/user1/.cshrc file the line
setenv TERM hpterm

But it did not solve the problem :-(

Cheers,
Mauro
T G Manikandan
Honored Contributor

Re: Logon problem

YOur cshrc file has this entry.
if [ "$TERM" = "" ]
then eval ` tset -s -Q -m ':?hp'` else
eval ` tset -s -Q `
fi

It defaults to hp.set your TERM variable appropriately to the terminal from which you are working.

Test is not a supported terminal type.

WHen you press enter during TERM=(hp)
IT takes the value as hp.

Run
#ttytype

to find the termianl type you are working with
then
#TERM=;
export TERM
if c shell
then
setenv TERM


Mauro_8
Frequent Advisor

Re: Logon problem

Hi,

I do not have this line in my .cshrc and have the line 'tset -s -Q' in my .profile file, but I think it is not used in csh logon.

Cheers,
Mauro
Mauro_8
Frequent Advisor

Re: Logon problem

Hi,

It is stranger... I rename my .cshrc in /home/user1 to .garbage and logon. It did not solve my problem. It seems to be something in the logon process before read the .cshrc file.

Any ideas ?

Cheers,
Mauro
Darrell Allen
Honored Contributor

Re: Logon problem

Hi Mauro,

I presume user1's shell is set to csh in /etc/passwd. Is that correct?

For csh, /etc/csh.login, ~/.cshrc, then ~/.login are executed when you do "su - user1".

For bourne shell derivatives, /etc/profile, then ~/.profile.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Mauro_8
Frequent Advisor

Re: Logon problem

Hi,

It is working fine now.
I had a error in my .login file with TERM variable.

Thanks all and now I am going to assign points for you,

Mauro