Operating System - HP-UX
1834811 Members
2339 Online
110070 Solutions
New Discussion

Re: Processes happening while an user logs in.

 
Azaru
Regular Advisor

Processes happening while an user logs in.

Dear gurus,

I am new to this field. I have an doubt


What are the processes running when an user los into the HP_UNIX system?

azaru
6 REPLIES 6
Deepak Kulkarni
Regular Advisor

Re: Processes happening while an user logs in.

Hi Azarudeen,

Processes running will be telned if u logged with telned and sshd if with ssh. Along with this shell specified in /etc/passwd for the respective user will be running.
I hope this cleas your doubt.

For example
PID TTY TIME COMMAND
8335 pts/ta 0:00 telnetd
8336 pts/ta 0:00 ksh

Rgds
DK
Azaru
Regular Advisor

Re: Processes happening while an user logs in.

Great Deepak sir

Thanx a lot. I am very happy to hear this from you this much soon. I never expected this that you ppl are very fast.

But one thing is still hitting in my mind.

like what the system will do while an user logs in?

If you clear me in this then i will be very happy.

Thanks in advance
azaru
sreeram n
Frequent Advisor

Re: Processes happening while an user logs in.

When you first connect to a UNIX system, You will get login prompt

You need to enter your password at this prompt.


These two prompts are presented by a program called getty.

These are its tasks:
1. Display the prompt login.
2. Wait for a user to type a username.
3. After a username has been entered, display the password prompt.
4. Wait for a user to enter a password.
5. Give the username and password entered by the user to the login command and
exit.

After login receives your username and password, it looks through the file /etc/passwd
for an entry matching the information you provided. If it finds a match, login executes a
shell and exits.

I hope I made it clear.

Sreeram
Sreeram N
sreeram n
Frequent Advisor

Re: Processes happening while an user logs in.

One more thing.

If no match is found in password fille , the login program issues an error message and exits. At this point
the getty program takes over and displays a new login prompt.
Sreeram N
Azaru
Regular Advisor

Re: Processes happening while an user logs in.

Yes thats great sreeram sir.

Thanks a lot for your kind answers.

Now i am clear and too happy.

azaru
Azaru
Regular Advisor

Re: Processes happening while an user logs in.

thanks