From owner-freebsd-hackers Tue Jul 13 12:23:13 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id BB84A14EB7; Tue, 13 Jul 1999 12:22:57 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 13 Jul 1999 20:22:57 +0100 (BST) Date: Tue, 13 Jul 1999 20:22:56 +0100 From: David Malone To: "Brian F. Feldman" Cc: hackers@FreeBSD.org Subject: Re: a BSD identd Message-ID: <19990713202256.A4767@walton.maths.tcd.ie> References: <199907132004.aa08685@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: ; from Brian F. Feldman on Tue, Jul 13, 1999 at 03:12:51PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jul 13, 1999 at 03:12:51PM -0400, Brian F. Feldman wrote: > > Why not actually store the fake ID in a symbolic link? That way you just > > do a readlink(), which would be safer, neater and faster than reading a > > file. A user can set up a fake ID with something like: > > > > ln -s "Warm-Fuzzy" .fakeid > > Hysterical raisins. ~/.fakeid being a text file is how it's always been done. > That would be a better idea if I didn't mind confusing the hell out of > people :) You could tell them to do: ln -s `cat .fakeid` .fakeidnew mv .fakeid `cat .fakeid` mv .fakeidnew .fakeid Also - I guess if you're goting to patch inetd to do this stuff it should be runtime configurable to be able to: 1) return the traditional :ERROR:HIDDEN-USER, 2) return the real user always, 3) return the fakeid if it exists, and otherwise use the read user id, You should probably use uname to get the OS name too? David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message