17.Sets effective, real, and saved user ID.
18.Changes directory to the user’s home directory.
19.Executes shell.
5.11.3.4mingetty
mingetty, the minimal Linux getty, is invoked from /sbin/init when the system transitions from
1.Sets language.
2.Parses
3.Updates the utmp file with pseudo tty information.
4.Prompts for login name.
5.Execs the login program.
The steps that are relevant to the identification and authorization subsystem are step 4, which prompts for the user’s login name, and step 5, which executes the login program. The administrator can also use a
5.11.3.5newgrp
The newgrp command changes the group ID using the group password for authentication. If run with a command, it runs the command as a child shell and control returns to the parent, whose GID remains unaltered. If run without a command argument, it execs an interactive shell. If no group is specified, the GID from /etc/passwd is used. For more information on newgrp, see the newgrp(8) man page.
newgrp typically follows these processing steps:
1.Opens audit.
2.Sets its locale and message catalog information.
3.Gets its own name.
4.Opens its log file.
5.Gets its own gid.
6.Initializes environment variable handling.
7.Gets its own passwd entry.
8.Exits if there is no passwd entry.
9.Processes the command line.
10.Gets the group name of the group.
11.Checks all group with same GID for user membership.
12.Gets the shadow group name.
13.Check to see if the user needs to authenticate to take on the new GID.
14.Prompts for a password of authentication is necessary.
15.Logs the result.
178