From owner-freebsd-questions@FreeBSD.ORG Mon Jan 14 00:03:45 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65B8C16A421 for ; Mon, 14 Jan 2008 00:03:45 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AA2A713C459; Mon, 14 Jan 2008 00:03:44 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <478AA6DE.2080905@FreeBSD.org> Date: Mon, 14 Jan 2008 01:03:42 +0100 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Christian Baer References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Changing the output of uname -m or -p X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 00:03:45 -0000 Christian Baer wrote: > Hello Folks! > > This may be a bit of a hacker's question, but I'll just go for it in here > - at least for starters. > > I want to play a prank on a friend of mine. He does a csup at least once a > day and also makes a new world at least once a day. He is pretty nutty > about that which is ok for some -CURRENT system, but he also does that on > production systems. > > Now I don't want to judge him about that, but he is a bit sensitive about > the output of uname. The version is very important to him. :-) > > The prank I want to pull is to somehow change the output of uname -m to > read something different. The best thing would be to change that to > something ancient like C-64, i286, i8086. Or, if only plattforms that > FreeBSD supports are allowed, then mips, alpha or sparc64 on an i386. That > should keep him thinking for a while. :-) > > I don't want to do any damage, so I just want to screw up the output of > uname and the system should work normally apart from that. I realise that > I may have to change some of the OS's code and that's not a problem. I > just don't know where to look for this kind of thing and I don't really > want to do too much reading just for a little prank. > > This guy is a really good friend of mine but sometimes get up my neck > because I am much more conservative about updating my production systems. > As you can see on this machine, I go along the lines of RELENG_6_2 which > he can't understand. This should buy me a little peace and quite for a > week or two. Getting access to his machines is no problem as I am often at > his place. > > Can this even be done and if so how? See the manpage, and the UNAME_* variables. Kris