Operating System - HP-UX
1832800 Members
2734 Online
110045 Solutions
New Discussion

Re: login prompt not display

 
Tuck Lee
Frequent Advisor

login prompt not display

Hi!

I have a problem with one of my trusted server. I have a user ftpuser sharing a user directory with other server's user ftpuser. When I try to telnet or ssh into the trusted server, I am stop at the last part of the profile script and no prompt will appear. The login seems to have hanged and I cannot kill the login.

Need some advise.

regards
tuck
13 REPLIES 13
Ganesan R
Honored Contributor

Re: login prompt not display

Hi,

Check the login shell. This user may not be given with shell access and only given ftp access.
Best wishes,

Ganesh.
Tuck Lee
Frequent Advisor

Re: login prompt not display

I have check the profile, the shell is there. I have another server mounted to the same server dir and I was able to do a telnet and the prompt apprear?? The other server I use is not trusted
Ganesan R
Honored Contributor

Re: login prompt not display

Hi,

As far I know, trusted configuration will not stop the login by any means. If you suspect issue with user profile, you can rename and test it.

Also note that profile will be executed after you issued username and password. If you are not even getting login prompt, then you cannot suspect profile. If you get login prompt, and session hangs after issuing password then it could be user profile issue.

Can you post the following output?

#grep /etc/passwd
Best wishes,

Ganesh.
Taifur
Respected Contributor

Re: login prompt not display

Hi Tuck

Try to kill the process of telnet and ssh
Again start telnet & ssh process

Try again by telnet

Rgds//
Taifur
Mark McDonald_2
Trusted Contributor

Re: login prompt not display

Can you switch to that user when already logged in as someone else?
OldSchool
Honored Contributor

Re: login prompt not display

"I have check the profile, the shell is there"

Yeah, but does the user trying to do this have a valid shell in /etc/password?
Dennis Handly
Acclaimed Contributor

Re: login prompt not display

>I am stop at the last part of the profile script

You should use "set -x" in your .profile to see what command is hanging. What command does ps(1) show is running?
UNIX95=EXTENDED_PS ps -Hfu user-name

>Mark: Can you switch to that user when already logged in as someone else?

You might try this su with and without the "-".
Tuck Lee
Frequent Advisor

Re: login prompt not display

I can su "without -" into the userID but not "with -"
Tuck Lee
Frequent Advisor

Re: login prompt not display

I can su "without -" into the userID but not "with -"

I have new message, after I su to the user, I try to do a ls or pwd. Error message cannot access parent directory.
Dennis Handly
Acclaimed Contributor

Re: login prompt not display

>I can su "without -" into the userID but not "with -"

This indicates a .profile problem. In the past on 10.20, there used to be hangs if your history file was on NFS.

>after I su to the user, I try to do a ls or pwd. Error message cannot access parent directory.

What directory are you in? Do "echo $PWD".
(This is without the "-"?)
Tuck Lee
Frequent Advisor

Re: login prompt not display

using the root to su w/o - i got the local pwd, but when i use the normal user to su w/o - i got error cannot access parent directories
$echo $PWD
Avinash20
Honored Contributor

Re: login prompt not display

could you provide the profile file of the user here.
Also let me know the shell which he is using

# cat /etc/passwd | grep

# cat /.profile

You could also do the following if you are using /usr/bin/sh shell

# mv /.profile /.profile_

# cp /etc/skel/.profile /.profile

Check if you are able to login
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Tuck Lee
Frequent Advisor

Re: login prompt not display

I have a unique case here, I have a folder that is shareed by multiple host using ID ftpuser. The folder is a nas mount point. Other host are not using trusted mode while only one server is and that is also the server that cannot can a telnet login prompt. Other server non trusted mode have no problem