RE: who am i
I don't think this is a problem with su. The same occurs when running login 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 notice and fix it. It has certainly scared me a few times, it would be nice if it was corrected. Thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Morten Rodal Sent: Thursday, July 03, 2003 7:02 PM To: Richard Arends Cc: [EMAIL PROTECTED] 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: > > ========= > [snowlap] ~$ who am i > richard ttyp5Jul 4 00:34 (:0.0) > [snowlap] ~$ su - > Password: > Last login: Fri Jul 4 00:31:17 on ttyp5 > snowlap# who am i > root ttyp5Jul 4 00:34 > snowlap# exit > logout > [snowlap] ~$ who am i > root ttyp5Jul 4 00:34 > ============= > > 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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: who am i
On Fri, 4 Jul 2003, Ruslan Ermilov wrote: Hello, > > Doh, forgot to mention: the following patch fixes it for me. This indeed fixes it. Thanks! Regards, Richard. Paul Vixie in an interview with Sendmail.net: Now that the Internet has the full spectrum of humanity as users, the technology is showing its weakness: it was designed to be used by friendly, smart people. Spammers, as an example of a class, are neither friendly nor smart. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: who am i
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, > > > > Please take a look at this: ... > > Of course the latest 'who am i' should return 'richard' and not(!) 'root' > > > Yes, this sucks. DES, could you please fix it? This is also in the PR database as bin/53520. http://www.FreeBSD.org/cgi/query-pr.cgi?pr=bin/53520 -- Sean Kelly | PGP KeyID: D2E5E296 [EMAIL PROTECTED] | http://www.zombie.org pgp0.pgp Description: PGP signature
Re: who am i
On Thu, 2003-07-03 at 15:46, Richard Arends wrote: > Hello, > > Please take a look at this: > > = > [snowlap] ~$ who am i > richard ttyp5Jul 4 00:34 (:0.0) > [snowlap] ~$ su - > Password: > Last login: Fri Jul 4 00:31:17 on ttyp5 > snowlap# who am i > root ttyp5Jul 4 00:34 > snowlap# exit > logout > [snowlap] ~$ who am i > root ttyp5Jul 4 00:34 > ============= > > Of course the latest 'who am i' should return 'richard' and not(!) 'root' > > Regards, > > Richard. > Quite interesting, I do concur... I get the same thing here... [EMAIL PROTECTED]:~> who am i damm ttyp5Jul 3 16:06 (:0.0) [EMAIL PROTECTED]:~> su - Password: Last login: Thu Jul 3 14:06:16 on ttyp4 [EMAIL PROTECTED]:~# who am i root ttyp5Jul 3 16:06 [EMAIL PROTECTED]:~# logout [EMAIL PROTECTED]:~> who am i root ttyp5Jul 3 16:06 [EMAIL PROTECTED]:~> Quite odd... yet true. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: who am i
On Fri, Jul 04, 2003 at 02:02:09AM +0300, Ruslan Ermilov wrote: [...] > Doh, forgot to mention: the following patch fixes it for me. > A better version: %%% Index: su === 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 - 1.15 +++ su 3 Jul 2003 23:03:32 - @@ -14,4 +14,4 @@ accountinclude system # session -sessioninclude system +sessionrequiredpam_permit.so %%% Cheers, -- Ruslan Ermilov Sysadmin and DBA, [EMAIL PROTECTED] Sunbay Software Ltd, [EMAIL PROTECTED] FreeBSD committer pgp0.pgp Description: PGP signature
Re: who am i
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, > > > > Please take a look at this: > > > > ============= > > [snowlap] ~$ who am i > > richard ttyp5Jul 4 00:34 (:0.0) > > [snowlap] ~$ su - > > Password: > > Last login: Fri Jul 4 00:31:17 on ttyp5 > > snowlap# who am i > > root ttyp5Jul 4 00:34 > > snowlap# exit > > logout > > [snowlap] ~$ who am i > > root ttyp5Jul 4 00:34 > > = > > > > Of course the latest 'who am i' should return 'richard' and not(!) 'root' > > > Yes, this sucks. DES, could you please fix it? > Doh, forgot to mention: the following patch fixes it for me. %%% Index: su === 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 - 1.15 +++ su 3 Jul 2003 22:58:37 - @@ -14,4 +14,4 @@ accountinclude system # session -sessioninclude system +#session include system %%% Cheers, -- Ruslan Ermilov Sysadmin and DBA, [EMAIL PROTECTED] Sunbay Software Ltd, [EMAIL PROTECTED] FreeBSD committer pgp0.pgp Description: PGP signature
Re: who am i
On Fri, Jul 04, 2003 at 12:46:10AM +0200, Richard Arends wrote: > Hello, > > Please take a look at this: > > = > [snowlap] ~$ who am i > richard ttyp5Jul 4 00:34 (:0.0) > [snowlap] ~$ su - > Password: > Last login: Fri Jul 4 00:31:17 on ttyp5 > snowlap# who am i > root ttyp5Jul 4 00:34 > snowlap# exit > logout > [snowlap] ~$ who am i > root ttyp5Jul 4 00:34 > ============= > > 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 pgp0.pgp Description: PGP signature
Re: who am i
On Fri, Jul 04, 2003 at 12:46:10AM +0200, Richard Arends wrote: > Hello, > > Please take a look at this: > > = > [snowlap] ~$ who am i > richard ttyp5Jul 4 00:34 (:0.0) > [snowlap] ~$ su - > Password: > Last login: Fri Jul 4 00:31:17 on ttyp5 > snowlap# who am i > root ttyp5Jul 4 00:34 > snowlap# exit > logout > [snowlap] ~$ who am i > root ttyp5Jul 4 00:34 > ============= > > Of course the latest 'who am i' should return 'richard' and not(!) 'root' > Yes, this sucks. DES, could you please fix it? Cheers, -- Ruslan Ermilov Sysadmin and DBA, [EMAIL PROTECTED] Sunbay Software Ltd, [EMAIL PROTECTED] FreeBSD committer pgp0.pgp Description: PGP signature
who am i
Hello, Please take a look at this: = [snowlap] ~$ who am i richard ttyp5Jul 4 00:34 (:0.0) [snowlap] ~$ su - Password: Last login: Fri Jul 4 00:31:17 on ttyp5 snowlap# who am i root ttyp5Jul 4 00:34 snowlap# exit logout [snowlap] ~$ who am i root ttyp5Jul 4 00:34 = Of course the latest 'who am i' should return 'richard' and not(!) 'root' Regards, Richard. Paul Vixie in an interview with Sendmail.net: Now that the Internet has the full spectrum of humanity as users, the technology is showing its weakness: it was designed to be used by friendly, smart people. Spammers, as an example of a class, are neither friendly nor smart. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"