1829012 Members
2350 Online
109986 Solutions
New Discussion

Login error msg

 
sivakumar_11
Advisor

Login error msg

Dear Friends,

Kindly find the error msg that occurs while i login to root.
-----------------------------
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the U.S. Government is subject to
restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in
Technical Data and Computer Software clause in DFARS 252.227-7013.

Hewlett-Packard Company
3000 Hanover Street
Palo Alto, CA 94304 U.S.A.

Rights for non-DOD U.S. Government Departments and Agencies are as set
forth in FAR 52.227-19(c)(1,2).
/etc/profile[129]: TRAP: not found
TERM = (hp)
----------------------------------------
if i give term vt220 & go to the cmd prompt.
iam not able use Ctrl + C.

In root the both keys r not working, if i su to any user Ctl+c it just hangs for a while or
it just looks like this #Servername>^C

Kindly repond immediatly

tar
siva
11 REPLIES 11
MarkSyder
Honored Contributor

Re: Login error msg

I'm puzzled by TRAP not found. What shell are you logging in to? If in doubt, you can tell by checking the root entry in /etc/passwd - it shouldn't be ksh.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Stephen Keane
Honored Contributor

Re: Login error msg

Edit /etc/profile and replace TRAP with trap.

What does 'stty -a' give you?
Mobeen_1
Esteemed Contributor

Re: Login error msg

Siva,
In line 129 of your /etc/profile you have probably have trap in CAPS, try changing this to all small case like trap and try it but not before making sure of which shell you are in

etc/profile[129]: TRAP: not found


rgds
Mobeen
Eric Antunes
Honored Contributor

Re: Login error msg

Hi,

Remove line 129 from /etc/profile and see if this is the issue.

In my .profile, I use:

if [ `tty` = "/dev/console" ]
then
export TERM=hp;
fi


Best Regards,

Eric Antunes
Each and every day is a good day to learn.
sivakumar_11
Advisor

Re: Login error msg

Hello All,

This is what my profile file looks & #stty -a
shows

==========


HP-UX mbpdev01 B.11.11 U 9000/800 (tf)

login: root
Password:
Please wait...checking for disk quotas
(c)Copyright 1983-2000 Hewlett-Packard Co., All Rights Reserved.
(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California
(c)Copyright 1980, 1984, 1986 Novell, Inc.
(c)Copyright 1986-1992 Sun Microsystems, Inc.
(c)Copyright 1985, 1986, 1988 Massachusetts Institute of Technology
(c)Copyright 1989-1993 The Open Software Foundation, Inc.
(c)Copyright 1986 Digital Equipment Corp.
(c)Copyright 1990 Motorola, Inc.
(c)Copyright 1990, 1991, 1992 Cornell University
(c)Copyright 1989-1991 The University of Maryland
(c)Copyright 1988 Carnegie Mellon University
# @(#)B.11.11_LR

# Default (example of) super-user's .profile file


# Do not put "." in PATH; it is a potential security breach.
# Do not put "/usr/local/bin" in PATH; it is a potential security breach.
# Example assumes /home/root exists.
set +u

PATH=/usr/sbin:$PATH:/sbin:/home/root

# Be sure that VUE does not invoke tty commands

if [ ! "$VUE" ]; then

# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
# @(#)B.11.11_LR

# Default (example of) super-user's .profile file


# Do not put "." in PATH; it is a potential security breach.
# Do not put "/usr/local/bin" in PATH; it is a potential security breach.
# Example assumes /home/root exists.
# @(#)B.11.11_LR

# Default (example of) super-user's .profile file


# Do not put "." in PATH; it is a potential security breach.
# Do not put "/usr/local/bin" in PATH; it is a potential security breach.
# Example assumes /home/root exists.
set +u

PATH=/usr/sbin:$PATH:/sbin:/home/root

# Be sure that VUE does not invoke tty commands

if [ ! "$VUE" ]; then

# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs

echo "WARNING: YOU ARE SUPERUSER !!\n"

:q!
# stty -a
speed 9600 baud; line = 0;
rows = 24; columns = 80
min = 1; time = 1;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 ; swtch
stop = ^S; start = ^Q; susp ; dsusp
werase ; lnext
parenb -parodd cs7 -cstopb hupcl -cread -clocal -loblk -crts
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon -ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
#
------------------------------
pls revert me.

tar
sivakumar
sivakumar_11
Advisor

Re: Login error msg

Hi Mark Syder,

the shell is /sh, but other servers with /sh works well. only in 1 particular server i face this problem.

any other ideas or tips,post it

tar
siva
MarkSyder
Honored Contributor

Re: Login error msg

/sh is what I would have expected.

I can't see any reference to TRAP in the file you have posted: is this the .profile or /etc/profile? The error message refers to /etc/profile.

Mark
The triumph of evil requires only that good men do nothing
Eric Antunes
Honored Contributor

Re: Login error msg

Indeed, the file you posted (/.profile ?)has not 129 lines...
Each and every day is a good day to learn.
Mobeen_1
Esteemed Contributor

Re: Login error msg

Siva,
I agree with Mark, cannot see line 129 containing TRAP that was mentioned before. Please post here contents of /etc/profile

regards
Mobeen
sivakumar_11
Advisor

Re: Login error msg

Spl. Thanks to all ,

Sorry i posted .profile not /etc/profile

it was right.

trap 1 2 3 was in CAPS

thanks to all

siva
Mobeen_1
Esteemed Contributor

Re: Login error msg

Siva,
Please assign points to folks that you think have helped you in resolving this issue.

regards
Mobeen