Openvt execs "login", which creates the utmp entry, but "login" is not responsible for getting rid of it (see login(1)). Rather than putting utmp or PAM stuff into openvt, it might make more sense to have it exec a program like mingetty instead of login so that the session is already handled correctly. -jim