Feeds:
Posts
Comments

Posts Tagged ‘getty’

*nix Login Process

After our *nix boots, at serial or virtual terminals, the user will see a login prompt:

machname  login:

This prompt is generated by a program usually getty which is regenerated by the init process every time a user ends a session on the console. The getty program will call login and login will call the user shell. The steps of the process are:

  1. init process spawns the getty process
  2. the getty process invokes the login process when user input login information
  3. the login process prompts for password, valid and start user’ shell on success and displays error on failure.
  4. user will run their session and eventually logout.

 

 

Advertisements

Read Full Post »