1834118 Members
2576 Online
110064 Solutions
New Discussion

Login Problem

 
SOLVED
Go to solution
Patricia Tang
Advisor

Login Problem

Hi,

After login, the content of the /etc/motd is display but the $ prompt doesn't prompt out.I have to ctrl-c to make it prompt.

Please advise and thanks in advance

Regards,
Pat
11 REPLIES 11
Stefan Farrelly
Honored Contributor

Re: Login Problem


This sounds like a problem with the /etc/profile script. After it displays the /etc/motd file it goes on to check your mail, then news. Try commenting these 2 commands, one at a time, out of /etc/profile to establish which is causing your login to not display a prompt.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Dan Am
Frequent Advisor

Re: Login Problem

after you ctl-C try this:

find / -anewer .dtprofile

this will give you a list of files, that got accessed after your login.

one of them, triggered either by .dtprofile or .profile (most likely) will be the hanging culprit.

less likely: a problem with /etc/dt/config/Xsession

do what you can. don't if you can't.
Bill Hassell
Honored Contributor

Re: Login Problem

Try tracing your /etc/profile (and perhaps your local .profile if you're using a standard shell). To trace a shell script:

sh -x /etc/profile

or

sh -xv /etc/profile

The former shows the commands when they are executed and the -v option shows the original lines (including comments) as the script runs. When a command seems to hang, that's the culprit.


Bill Hassell, sysadmin
Victor BERRIDGE
Honored Contributor

Re: Login Problem

I agree with what is said previously, I would like to know whats in your /etc/profile.
Do you have to do ctrl-c or does space bar work also?
I have seen people modify /etc/motd making it so long they have put or instead of
Just thoughts...
Victor
Patricia Tang
Advisor

Re: Login Problem

Hi,

I found out that system could not open remote accept socket.Nothing deal with /etc/profile file.

How to set the fcntl (F_SETPD)?

Thanks in Advance

Regards,
Pat

Patricia Tang
Advisor

Re: Login Problem

socket binding failed. How to overcome this problem?
Antoanetta Naghiu
Esteemed Contributor

Re: Login Problem

You said that ctrl-c is needed to get $. That is for regular user. What about root? Is it the same? Are you using NIS? Or do you have users home directories NFS mounted?
What are the permission for /etc/profile and $HOME/.profile? Copy .profile to profile.old. Copy /etc/skel/profile to .profile. Chmod .profile to be under user ownership. Try to login. Is it the same?
One more thing about patches...Which OS version are you using at which patch revision?
Patricia Tang
Advisor

Re: Login Problem

That is for regular user. root is ok .I am not using NIS but i have users home directories NFS mounted.
The permission for /etc/profile is rwxr-xr-x.There is no /etc/skel/profile.

The is no $home/.profile exist.System taking the default profile ( /etc/profile )

This problem only occur for those user from same mount-point.
Antoanetta Naghiu
Esteemed Contributor

Re: Login Problem

OK, we are getting closer.
Can you, please, create a local user as test, with the home directory in a local fs in that machine? Can it login with no problem?
Can you, create a .profile under a user home directory (attention at permission and ownership). Is this one logging with no problem?
Are you using automount or how do you use to mount remote fs with users home directory? I mean what option do you use for exported fs (see in the remote box /etc/exports file)?
And the last question, before all those, when you login as a general use, and press ctrl-c to get $. Can you please type pwd and see it it is that user's home directory.....
melvyn burnard
Honored Contributor
Solution

Re: Login Problem

from what I gather, you have users logging who have their home directories NFS mounted, correct?
If they are using ksh or csh, their is a known problem with this if the OS is 10.20

You need to apply the latest NFS patches to the NFS server AND clients
or their is a workaround to point the users HISTORY file to a non-nfs mounted directory.
as in :
export HISTFILE=/tmp/userhistfile
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Patricia Tang
Advisor

Re: Login Problem

Thanks a lot and now the problem get solve.
This cause by the HISTFILE.