From owner-freebsd-stable@FreeBSD.ORG Fri Jul 4 10:45:05 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00DE637B401; Fri, 4 Jul 2003 10:45:05 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0448743FA3; Fri, 4 Jul 2003 10:44:53 -0700 (PDT) (envelope-from ru@sunbay.com) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h64HijVU016686 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Jul 2003 20:44:47 +0300 (EEST) (envelope-from ru@sunbay.com) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h64Hij2i016681; Fri, 4 Jul 2003 20:44:45 +0300 (EEST) (envelope-from ru) Date: Fri, 4 Jul 2003 20:44:45 +0300 From: Ruslan Ermilov To: Mike Jakubik Message-ID: <20030704174445.GA16342@sunbay.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i cc: Stable cc: Dag-Erling Smorgrav Subject: Re: who am i X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2003 17:45:05 -0000 --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 04, 2003 at 01:23:54PM -0400, Mike Jakubik wrote: > Also, try doing 'who /etc' or any other directory. >=20 That's dumb argument. It just reads what you tell it and converts it to "struct utmp" records. As for the login(1) program, I think we should be doing much like Linux (Slackware) is doing: sh-2.05$ uname -a Linux anchor 2.4.20 #22 Wed Jun 4 20:59:56 EEST 2003 i686 unknown sh-2.05$ login No utmp entry. You must exec "login" from the lowest level "sh" The su(1) problem in 5.x is easily fixable in /etc/pam.d/su. > -----Original Message----- > From: Mike Jakubik [mailto:mikej@trigger.net] > Sent: Friday, July 04, 2003 1:23 PM > To: Stable > Subject: RE: who am i >=20 >=20 > root@ns1:~# who am i > root ttyp1 Jul 4 13:20 (wettoast.org) > root@ns1:~# login > login: wettoast > Password: > Last login: Fri Jul 4 09:48:25 on ttyp1 > Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 > The Regents of the University of California. All rights reserved. >=20 > FreeBSD 4.8-STABLE (NS1) #0: Tue Jul 1 01:07:20 EDT 2003 >=20 > Welcome to FreeBSD! >=20 > You have new mail. >=20 > wettoast@ns1:~$ logout > root@ns1:~# who am i > wettoast ttyp1 Jul 4 13:20 > root@ns1:~# >=20 > -----Original Message----- > From: owner-freebsd-stable@freebsd.org > [mailto:owner-freebsd-stable@freebsd.org]On Behalf Of c4 > Sent: Friday, July 04, 2003 1:05 PM > To: stable@freebsd.org > Subject: RE: who am i >=20 >=20 > Well that's weird cause >=20 > (c4@tonij:~) who am i > c4 ttyp0 Jul 4 19:03 (10.0.0.2) > (c4@tonij:~) su - > Password: > su-2.05a# who am i > c4 ttyp0 Jul 4 19:03 (10.0.0.2) > su-2.05a# logout > (c4@tonij:~) who am i > c4 ttyp0 Jul 4 19:03 (10.0.0.2) > (c4@tonij:~) uname -a > FreeBSD tonij.jolt.nu 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Wed Oct 2 > 20:54:06 CEST 2002 >=20 > At 15:50 2003-07-04, you wrote: > >I don't think this is a problem with su. The same occurs when running lo= gin > >in a shell, then logging out. I've seen this bug in FreeBSD since early > 4.x, > >I guess I just never bothered to mention it, thinking someone would noti= ce > >and fix it. It has certainly scared me a few times, it would be nice if = it > >was corrected. > > > >Thanks. > > > >-----Original Message----- > >From: owner-freebsd-current@freebsd.org > >[mailto:owner-freebsd-current@freebsd.org]On Behalf Of Morten Rodal > >Sent: Thursday, July 03, 2003 7:02 PM > >To: Richard Arends > >Cc: current@freebsd.org > >Subject: Re: who am i > > > > > >On Fri, Jul 04, 2003 at 12:46:10AM +0200, Richard Arends wrote: > > > Hello, > > > > > > Please take a look at this: > > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > [snowlap] ~$ who am i > > > richard ttyp5 Jul 4 00:34 (:0.0) > > > [snowlap] ~$ su - > > > Password: > > > Last login: Fri Jul 4 00:31:17 on ttyp5 > > > snowlap# who am i > > > root ttyp5 Jul 4 00:34 > > > snowlap# exit > > > logout > > > [snowlap] ~$ who am i > > > root ttyp5 Jul 4 00:34 > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > > > Of course the latest 'who am i' should return 'richard' and not(!) > 'root' > > > > > > Regards, > > > > > > Richard. > > > > > > >I am seeing the same things, and I reported similar stuff in another > >mail to this list. Someone suggested that this was a utmp(5) problem > >and might be a problem with the su(1) program. > > > >-- > >Morten Rodal > > > > > >_______________________________________________ > >freebsd-stable@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-stable > >To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/Bb0NUkv4P6juNwoRAogLAJ9rhm/PjI12jQg9H6ycSMWNw7lZYwCfaZzy h14CqhdOqslb1/w/tKdZM3A= =tdCZ -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+--