Sam Trenholme's webpage
This article was posted to the Usenet group alt.hackers in 1995; any technical information is probably outdated.

Re: Help with a tcsh hack

Article: 8224 of alt.hackers
Newsgroups: alt.hackers
From: (Jonathan Adair)
Subject: Re: Help with a tcsh hack
Sender: (NeTnEwS)
Organization: Siemens Corporate Research, Princeton NJ
Date: Tue, 11 Jul 1995 20:48:41 GMT
Lines: 36
Status: RO

In article <>,
Ben Hodson <> wrote:
>ie. I want to change the userid that come up.  I have tried
>various things setting $user and $uid and stuff but to no avail :-(
>Any ideas ?

  A lot of stuff still trusts /etc/utmp for the username.  If it is
  writeable (many are), you might try twiddling the username there.

  I have a short piece of code that does this.  I even set off a
  little panic by messing around and changing someone else's
  utmp entry once.

  There are interesting applications.  Some are even legitimate.
  For a while, I would post short notices there for people fingering
  my machine:

  Login       Name              TTY Idle    When    Where
  adair    Jonathan Adair        co   46 Thu 15:30
  AtLunch  Back by 1:30          p2   46 Thu 12:30

  And before people start asking, no I won't send you a copy of
  my code.  As I was once told, "Only a true wizard knows the
  spell of invisibility."

  Type "man utmp" and hack away.

Jonathan E. Adair                 Web Page: (primary address for now)  PGP Key (617E4D49) Fingerprint (almost permanent address)   12 54 48 F3 EA B4 E7 9C (many moons ago)               F9 85 CD F5 17 60 B3 76


Child Child

Back to index