No prompt!

Thread Tools Search this Thread
Operating Systems Solaris No prompt!
# 1  
Old 01-18-2010
No prompt!

We have a Solaris 10 machine.
Today a weird issue happened.

After login remotely via ssh, the motd appeared BUT
there was no prompt!

The prompt only appears after pressing Ctrl+d or Ctrl+c.
Strange behaviour.

I have checked /etc/profile and own user .profile, there is no anamoly.

When I typed who -u, the tty is displayed as syscon instead of pts/..

Can anyone explain this behaviour or provide a solution?

# 2  
Old 01-18-2010
Originally Posted by sundar63
The prompt only appears after pressing Ctrl+d or Ctrl+c.
Strange behaviour.

I have checked /etc/profile and own user .profile, there is no anamoly.
Double check that. It looks like there is a process reading stdin from your description. What says, from another terminal:
ptree $(pgrep sshd)

# 3  
Old 01-18-2010
Here is the output,

$ for i in `pgrep sshd`
> do ptree $i
> done
8688 /usr/lib/ssh/sshd
 10546 /usr/lib/ssh/sshd
  10549 /usr/lib/ssh/sshd
   10551 -sh
    10563 ptree 10546
8688 /usr/lib/ssh/sshd
  10546 /usr/lib/ssh/sshd
   10549 /usr/lib/ssh/sshd
    10551 -sh
     10564 ptree 8688
8688 /usr/lib/ssh/sshd
   10546 /usr/lib/ssh/sshd
     10549 /usr/lib/ssh/sshd
      10551 -sh
        10565 ptree 10549
sunxxx 10551 10549   0 02:35:12 syscon      0:00 -sh
sunxxx 10569 10568   0 02:38:09 syscon      0:00 ps -ef
sunxxx 10549 10546   0 02:35:12 ?           0:00 /usr/lib/ssh/sshd
sunxxx 10568 10551   0 02:38:09 syscon      0:00 grep sunxxx

What is syscon?

When I start a duplicate session, it logs in perfectly. Smilie

What could be the issue?
# 4  
Old 01-19-2010
Is it the same case if you were to use a different UID to ssh?

Last edited by incredible; 01-19-2010 at 11:04 AM..
# 5  
Old 01-19-2010
Yes. It happens for all user ids.
# 6  
Old 01-19-2010
You can add "set -x" at the beginning of /etc/profile and see where the login scripts hangs.
# 7  
Old 01-19-2010
Thanks to jlliagre for the assistance.

I have inserted set -vx to debug.
And found it hangs at a script line which is executing grep.
The pattern is passed a value obtained from the command logname

Unfortunately logname doesn't return a value to the variable,
so it's stuck at the line grep $variable /file.

But why doesn't the command logname return a value?
I have executed in command prompt and there is no value at all!

How to use truss command to check logname execution?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Unable to move from rsc prompt to ok prompt

Hi, on sunfire v890 unable to move from rsc prompt to ok prompt, i have executed the command break. (9 Replies)
Discussion started by: manoj.solaris
9 Replies

2. UNIX for Dummies Questions & Answers

How to Change the % prompt to - prompt in UNIX?

how to Change the % prompt to - prompt in unix :wall: ---------- Post updated at 07:40 AM ---------- Previous update was at 07:38 AM ---------- How To display the last modification time of any file in unix ---------- Post updated at 07:40 AM ---------- Previous update was at 07:40 AM... (2 Replies)
Discussion started by: manjiri sawant
2 Replies

3. Shell Programming and Scripting

FTP prompt

Hello, I am connectin to a remote server using: ftp -n -i <server> user <username> <password> lcd ~/YAFFA after i execute lcd command ther is a prompt: "Local directory now /home/YAFFA" How can is make it disappear? :confused: Please use and tags when posting code, data... (2 Replies)
Discussion started by: LiorAmitai
2 Replies

4. Solaris

ok prompt

There is a number before the ok prompt in OBP between brackets {}. It is 0 most of the time but sometimes it is different number {9} ok or {0} ok What does this number mean and how it gets changed? (3 Replies)
Discussion started by: StarSol
3 Replies

5. Solaris

Changing prompt

I currently have this as my prompt when I log in (shell is sh): PS1="`hostname ` # " My question is how do I add the current directory to that prompt? Is there a way? Thanks. (5 Replies)
Discussion started by: kjbaumann
5 Replies

6. Shell Programming and Scripting

How to a prompt a particular value???

Hi i am working with clearcase in my UNIX machine... Accidentally some had ran a script to check out all files in the machine.... Now i am actually trying to uncheck out all those files and had written a script for it.... The problem is that when ever i am trying to uncheck out the files, its... (2 Replies)
Discussion started by: grajesh_955
2 Replies

7. Solaris

OK prompt

Here is a silly question: I have a Sun 220R and I need to get to the OK prompt. I can't hook up a monitor and keyboard to it. Its on a KVM right now and I also have a console connected to it. I can use PuTTY to get to the console and then connect to the 220R from there. How can I get to the... (3 Replies)
Discussion started by: hshapiro
3 Replies

8. Solaris

Can't get ok prompt

Hi, I'm attempting to reinstall a damaged installation of Solaris 9 (on a SunFire). Connected via serial from a PC. Can't get to the "ok" prompt to launch install from CD. Ctrl+break acknowledges my request for a break, but no prompt. "#." gets me an "sc>" prompt, with several options, but... (3 Replies)
Discussion started by: shonenfan
3 Replies

9. UNIX for Dummies Questions & Answers

prompt why ?

Even though I give rm -f *, the files are listed for confirmation of removal . Why ? Thanks LS (2 Replies)
Discussion started by: ls1429
2 Replies

10. UNIX for Dummies Questions & Answers


how do we change the command prompt? right now my prompt says felix% where felix is the machine im on. but how do we change it? for example, how can i make it say me% and how do we get it to tell us what directory we are under because when i change into a subdir then the prompt... (1 Reply)
Discussion started by: eeldivady
1 Replies
Login or Register to Ask a Question

Featured Tech Videos