Xref: utzoo comp.sys.att:8461 unix-pc.general:4495 Path: utzoo!utgpu!watserv1!watmath!uunet!utoday!comeau From: comeau@utoday.UUCP (Greg Comeau) Newsgroups: comp.sys.att,unix-pc.general Subject: Re: Uniquely identifying a user: is it possible? Message-ID: <1155@utoday.UUCP> Date: 13 Jan 90 06:36:48 GMT References: <25730@cup.portal.com> <1143@utoday.UUCP> <25845@cup.portal.com> Reply-To: comeau@utoday.UUCP (Greg Comeau, Columnist, UNIX TODAY!) Organization: UNIX Today!, Manhasset, NY Lines: 27 In article <25845@cup.portal.com> thad@cup.portal.com (Thad P Floryan) writes: >Examples abound re: nlist()'ing /unix, so that's not the problem. The question >was whether there's a non-privileged way of accurately identifying the user. >It appears there is NO such way per (email) responses received to date. >My purpose was not to audit, but to write a PD "who" that would highlight the >present user (either with "*" or reverse video or whatever's applicable) per: > $ who > thad w1 Jan 10 01:59 > thad * p0 Jan 12 00:32 Um, if that's what you want to do then assuming (there's that work again!) a non-esotric use of windows why not just cross check the /dev/tty minor/ major with the minor/major of the dev stored in u/w/tmp? Or you could even write a shell script comboing probably the who command, the tty command, and the sed command. >And, don't laugh; I've had over 16 people (myself multiple times, too) logged >into one of my UNIXPCs at ONE TIME. Interesting. Via what mechanism? -- Greg, Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418 Producers of CC C++, SysAdm columnist for UNIX Today!, Microsoft Systems Journal (C programming), + others. Also, BIX c.language & c.plus.plus conf. moderator. Here:attmail!csanta!greg / BIX:comeau / CIS:72331, 3421 / voice:718-849-2355