Date: Wed, 10 Feb 1999 15:02:57 +1030 From: Greg Lehey <grog@lemis.com> To: Matthew Hunt <mph@pobox.com> Cc: Gregory Sutter <gsutter@pobox.com>, freebsd-questions@FreeBSD.ORG Subject: Re: finger Message-ID: <19990210150256.I71962@freebie.lemis.com> In-Reply-To: <19990209194213.A89829@wopr.caltech.edu>; from Matthew Hunt on Tue, Feb 09, 1999 at 07:42:13PM -0800 References: <XFMail.990210113213.keith@apcs.com.au> <Pine.BSF.4.05.9902092011100.388-100000@nyc-ny69-14.ix.netcom.com> <19990209190356.A7841@orcrist.mediacity.com> <19990210135059.G71962@freebie.lemis.com> <19990209194213.A89829@wopr.caltech.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, 9 February 1999 at 19:42:13 -0800, Matthew Hunt wrote: > On Wed, Feb 10, 1999 at 01:50:59PM +1030, Greg Lehey wrote: > >> How can you know it's a finger from root? > > Check the EUID in hide() in src/usr.bin/finger/util.c; in inetd.conf, > run fingerd as nobody (which is the default). > > (I don't think anybody's expecting "finger @localhost" by root to > recognize your rootfulness.) > > With this change, I think everything works per Greg's wishes: > > wopr:~$ whoami > mph > wopr:~$ touch .nofinger > wopr:~$ finger > No one logged on. > wopr:~$ sudo finger > Login Name TTY Idle Login Time Office Phone > mph Matthew Hunt p1 Jan 30 14:11 03 Robi +1 626 39 > mph Matthew Hunt p4 Jan 30 15:27 03 Robi +1 626 39 > mph Matthew Hunt p5 23 Feb 1 20:42 03 Robi +1 626 39 > wopr:~$ finger @localhost > [localhost] > No one logged on. Hmm. These may be Greg's wishes, in which case that's OK. But that's not the purpose of finger. There are other tools to look at users on localhost; the normal use of finger is across the network, and this hack doesn't work there. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990210150256.I71962>
