Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Feb 2000 15:03:44 -0800 (PST)
From:      Joel Ray Holveck <joelh@piqnet.org>
To:        freefall-gnats@detlev.piqnet.org
Subject:   bin/16971: Exiting from /usr/sbin/login does not restore utmp
Message-ID:  <200002242303.PAA79693@detlev.piqnet.org>

next in thread | raw e-mail | index | archive | help

>Number:         16971
>Category:       bin
>Synopsis:       Exiting from /usr/sbin/login does not restore utmp
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 24 15:10:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Joel Ray Holveck
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	Current from 10 Feb

>Description:

	After login exits when invoked from the shell, it does not
restore utmp to indicate the old user.

>How-To-Repeat:

The following has been minorly edited to eliminate motds, etc.
joelh's shell is bash 2.02.  It runs login out of /usr/bin and forks
as if it were running any other program.  The telnet is to force a
clean environment.

detlev$ telnet 127.0.0.1
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.

FreeBSD/i386 (detlev.piqnet.org) (ttypb)

login: joelh
s/key 94 de20359
Password: 
Last login: Thu Feb 24 14:31:14 from localhost
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
	The Regents of the University of California.  All rights reserved.

FreeBSD 4.0-CURRENT (DETLEV) #0: Fri Feb 11 01:37:14 PST 2000
detlev$ tty
/dev/ttypb
detlev$ w | grep pb
joelh            pb       localhost         2:34PM     - grep pb
detlev$ login smt
Password:
Last login: Thu Feb 24 14:31:27 on ttypa
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
	The Regents of the University of California.  All rights reserved.

FreeBSD 4.0-CURRENT (DETLEV) #0: Fri Feb 11 01:37:14 PST 2000
bash-2.02$ w | grep pb
smt             pb       -                 2:34PM     - grep pb
bash-2.02$ logout
detlev$ w | grep pb
smt             pb       -                 2:34PM     - grep pb
detlev$ logout

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002242303.PAA79693>