Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jul 2003 02:02:09 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Richard Arends <richard@unixguru.nl>
Cc:        Dag-Erling Smorgrav <des@freebsd.org>
Subject:   Re: who am i
Message-ID:  <20030703230209.GA4938@sunbay.com>
In-Reply-To: <20030703225813.GA4432@sunbay.com>
References:  <20030704003539.A26966@mail.unixguru.nl> <20030703225813.GA4432@sunbay.com>

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

--envbJBWh7q8WU6mo
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Jul 04, 2003 at 01:58:13AM +0300, Ruslan Ermilov wrote:
> On Fri, Jul 04, 2003 at 12:46:10AM +0200, Richard Arends wrote:
> > Hello,
> >=20
> > Please take a look at this:
> >=20
> > =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
> >=20
> > Of course the latest 'who am i' should return 'richard' and not(!) 'roo=
t'
> >=20
> Yes, this sucks.  DES, could you please fix it?
>=20
Doh, forgot to mention: the following patch fixes it for me.

%%%
Index: su
=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=3D=3D
RCS file: /home/ncvs/src/etc/pam.d/su,v
retrieving revision 1.15
diff -u -r1.15 su
--- su	14 Jun 2003 12:35:05 -0000	1.15
+++ su	3 Jul 2003 22:58:37 -0000
@@ -14,4 +14,4 @@
 account		include		system
=20
 # session
-session		include		system
+#session		include		system
%%%


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software Ltd,
ru@FreeBSD.org		FreeBSD committer

--envbJBWh7q8WU6mo
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE/BLXxUkv4P6juNwoRAh/bAJ4yfRUgn/8eIIhQatxuLExo59fFWQCfZKbF
sGV0G72f/Q/wq0Va7FQcItE=
=+a82
-----END PGP SIGNATURE-----

--envbJBWh7q8WU6mo--



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