Operating System - HP-UX
1825750 Members
2408 Online
109687 Solutions
New Discussion

Shell prompt is not shown in HPUX 10.20

 
SOLVED
Go to solution
senthil_kumar_2
Regular Advisor

Shell prompt is not shown in HPUX 10.20

Hi All,

Suddenly i am not able to get the shell prompt after entering the correct username and password.



For example:

login: ze4egi
Password:
Please wait...checking for disk quotas

General Motors (GMLG) EMD
Engineering CAD/CAM/CAE Network


Unauthorized use is prohibited.
Welcome, Senthil Kumar.
You last logged in Sunday October 18, 2009 at 22:22, on GMLG Node lgprime.lag.gm lg.gm.com.

General Motors (GMLG) EMD
Engineering CAD/CAM/CAE Network


Unauthorized use is prohibited.





How to solve this
31 REPLIES 31
Tingli
Esteemed Contributor

Re: Shell prompt is not shown in HPUX 10.20

Many reason. For example, your nfs disk is not mounted.
f. halili
Trusted Contributor

Re: Shell prompt is not shown in HPUX 10.20

Check the /etc/passwd. The entry for the shell i.e. /sbin/sh might got replaced.
derekh
Raj D.
Honored Contributor

Re: Shell prompt is not shown in HPUX 10.20

Senthil,
It could be due to few reason like , once you logged in it will check your profile depending on the type of shell the user has, it also checks disk quota etc,


- check the shell of the user: #grep username /etc/passwd

- Check the .profile in user home directory , if there is any customized script to load before you get a login prompt.
- check the vg00 filesystems , /var /tmp / are not full.
# bdf | grep vg00

- check if there is any error in syslog.log or dmesg .

* The above tasks can be checked from another active session , or if a session already open/available.


Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
OldSchool
Honored Contributor

Re: Shell prompt is not shown in HPUX 10.20

1) "Many reason. For example, your nfs disk is not mounted."....

He got past the quota check, which I'd have expected to fail had there been a missing mount

2) "Check the /etc/passwd. The entry for the shell i.e. /sbin/sh might got replaced."

he got started logging in, as it appears to be running the profiles.....

so....

which shell are you *supposed* to be running?

This is from a terminal emulator and not X-Windows, correct?

take a look at the various startup files that the the shell for that userid uses. Any recent changes?

Which start up file issues the the messages you did recieve? What does that file do next? Is that the *last* startup file in the chain?
senthil_kumar_2
Regular Advisor

Re: Shell prompt is not shown in HPUX 10.20

I found below mentioned error message in HPUX server:

Oct 19 05:01:11 lgprime inetd[16254]: login/tcp: Connection from unknown (10.151.0.25) at Mon Oct 19 05:01:11 2009



10.151.0.25 is the IP of my client system.

Steven Schweda
Honored Contributor

Re: Shell prompt is not shown in HPUX 10.20

> Suddenly

What did you change?

> i am not able to get the shell prompt
> [...]

How long did you wait?

> [...] Connection from unknown

DNS (reverse) problem?

A Forum search for keywords like, say,
slow login
might find something useful.
Tingli
Esteemed Contributor

Re: Shell prompt is not shown in HPUX 10.20

This might be ok if the user gets in from the workstation and which won't have an entry in the DNS table.
F Verschuren
Esteemed Contributor

Re: Shell prompt is not shown in HPUX 10.20

can you please post the passwd line of this user, alsow check if his shell is in /etc/shells.
does this affect all users, ore only this user ore oly the users whit this shell?
Matti_Kurkela
Honored Contributor

Re: Shell prompt is not shown in HPUX 10.20

Did you edit your .profile or other login scripts recently?

These symptoms could be caused by an infinite loop in a login script.

An infinite recursion can do that too.
Once upon a time, in a very old development system where the developers had root access for historical reasons, one developer decided he didn't like root's /sbin/sh shell. He put something like "/usr/local/bin/bash -l" to the end of root's .profile script.

But bash runs .profile too! It caused /bin/sh to run bash, which ran bash again, and again... until the system ran out of memory and crashed.

This little episode provided great justification to remove unnecessary root access from developers :-]

MK
MK
Suraj K Sankari
Honored Contributor

Re: Shell prompt is not shown in HPUX 10.20

HI Senthil,

Did you change any configuration file ?
Is the problem came for all user or only for you.

If the problem is only for you than check your .profile .cshrc

Ifthe problem is for everyone then you need to check /etc/passwd file first for that you need single user..

Suraj
senthil_kumar_2
Regular Advisor

Re: Shell prompt is not shown in HPUX 10.20

I am facing this issue for all users.

1)Checking /etc/passwd file


root@lgapps:/root > grep -i ze4egi /etc/passwd
ze4egi:vxNYMz1aVU5Mc:10251:1600:Senthil Kumar:/emd/home/ze4egi:/usr/bin/sh


2)DNS reverse lookup, i am facing the same issue while try to login from all computers (windows / unix)

4)Here with i have attached .profile

5)But i am able to login as root user.
Raj D.
Honored Contributor

Re: Shell prompt is not shown in HPUX 10.20

Senthil,

>> 5)But i am able to login as root user.

The only thing different may be the .profile,
It lookslike .profile causing some problem at the end.


Can you check the .profile of root user.

# ls -l ~ze4egi/.profile
# ls -l /.profile #i.e root .profile #
(or if root is in acustomized home_dir check the .rofile)

Also check /etc/skel/profile


- You can also check for user other than this.proile (the one attached)
- Or you can create a sample user with a default .profile and check with login. Thus you can go step by step with troubleshootng the problem.

Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
OldSchool
Honored Contributor

Re: Shell prompt is not shown in HPUX 10.20

1)Checking /etc/passwd file


root@lgapps:/root > grep -i ze4egi /etc/passwd
ze4egi:vxNYMz1aVU5Mc:10251:1600:Senthil Kumar:/emd/home/ze4egi:/usr/bin/sh

OK, *you* use the std shell, and "root" should use /usr/sbin/sh. They BOTH run the same files at start up... /etc/profile followed by $HOME/.profile (if present).

Since root works (and you say everyone else hangs) that indicates that the issue may be due to:

a] either there is something in /etc/profile that runs differently for root -vs- non-root users

-OR-

b] there is something different between .profile for root and that used by other users.

-OR-

c] since you never answered, are the home directories NFS mounts???


2)DNS reverse lookup, i am facing the same issue while try to login from all computers (windows / unix)

I don't *know* that the will hang the login, but again you say root "works" while *all* others fail. It might cause problems w/ NFS related stuff, and that continues to bother me, as root's home directory probably is /, while you've not elaborated on where a normal users's home dir would be (internal disk, NFS, ???)

4)Here with i have attached .profile

once again internot exploder won't let me see it...(usually works better if given a .txt extension)...so I can't make any comment on this

5)But i am able to login as root user.

see the above mentioned items.

If you're sure nothing has changed in the config on *this* box, have any changes been made to your network. For instance, due you use a DNS server? If so, did it move recently and your current config points at the old address for it????

And,

From Steve S:
>> Suddenly

>What did you change? <<<<<--- And does that that change coincide w/ the start of problems

>> i am not able to get the shell prompt
>> [...]

>How long did you wait?

>> [...] Connection from unknown

>DNS (reverse) problem?

>A Forum search for keywords like, say,
> slow login
>might find something useful.


This *shouldn't* be tough to work out, you just have to work through it in a logical progression. So far, you seem to be taking a shotgun approach...and ignoring / not responding to requests for information....
Suraj K Sankari
Honored Contributor

Re: Shell prompt is not shown in HPUX 10.20

Hi,
>>I am facing this issue for all users.
Its looks your profile is having some problem.

Questions again
1.Did your all user are having same type of .profile
2.Which is home directiory for all user.
if it is /home then check are you able to access /home, cd /home and do a ls -l is it working ?
If not then problem is with your /home
check lvdisplay -v /dev/vg00/home.

If all ok then also not able to login then try this
move your .profile into .oldprofile and copy new .profile from /etc/skel and then try to login.

Suraj


R.K. #
Honored Contributor

Re: Shell prompt is not shown in HPUX 10.20

Hi Senthil,

>>But i am able to login as root user.
>>I am facing this issue for all users.

Did you try creating new user from root?
Can you login from this newly created user?
Don't fix what ain't broke
F Verschuren
Esteemed Contributor

Re: Shell prompt is not shown in HPUX 10.20

can you create a user this the same shell as root? and test if that is working?
can you test a user after moving his ~/.profile to ~/.profile.test
(do not forget to put it back.
F Verschuren
Esteemed Contributor

Re: Shell prompt is not shown in HPUX 10.20

please also test to move the /etc/profile to /etc/profile.test

after finding out whit part the error is in please post the file that is causing this.

ps if you run mount -all do you see strange errors? sometimes a not mounted file system can cause this kind of errors.
F Verschuren
Esteemed Contributor

Re: Shell prompt is not shown in HPUX 10.20

ps are you Senthil Kumar Kanagaraj from atos? if so please mail me (nl11588).
Viveki
Trusted Contributor

Re: Shell prompt is not shown in HPUX 10.20

Hi Senthil,

Your shell is corrupted.

Check whehter the root also uses the same shell as others? If not, please use the root's shell for all other users.

Also there is a chance that the root home directory is local and all other user's use NFS mount and it is not available now
senthil_kumar_2
Regular Advisor

Re: Shell prompt is not shown in HPUX 10.20

Please find some details.

1) Home directories are NFS mounted and able to access.

2) Users are configured in NIS server, so we are facing this issue while try to log in from NIS client.

3)NIS server is running on HP-UX 11.00 but this NIS client is running on HP-UX 10.20.
Viveki
Trusted Contributor

Re: Shell prompt is not shown in HPUX 10.20

Hi Senthil,

Has this setup worked earlier? If yes, anything changed recently?

Also please see the thread
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=37669
OldSchool
Honored Contributor

Re: Shell prompt is not shown in HPUX 10.20

you said:

"4)Here with i have attached .profile",

snd yet the attached file appears to be the /etc/profile.

If it really is the contents of .profile, that probably not a good thing, although it would explain the duplicate messages after the "disk quota" message in your original post.
F Verschuren
Esteemed Contributor

Re: Shell prompt is not shown in HPUX 10.20

is you problem fixed, if so please post the solution, if not please try to anwser the previus questions, and post the other observations
senthil_kumar_2
Regular Advisor

Re: Shell prompt is not shown in HPUX 10.20

Hi All,

Still this issue is not resolved.

Hi OldSchool,

Please attach the file.