From owner-freebsd-questions@FreeBSD.ORG Sun Jan 13 23:30:32 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 2864A16A41A for ; Sun, 13 Jan 2008 23:30:32 +0000 (UTC) (envelope-from news@nermal.rz1.convenimus.net) Received: from dd17730.kasserver.com (dd17730.kasserver.com [85.13.138.103]) by mx1.freebsd.org (Postfix) with ESMTP id D69B813C45D for ; Sun, 13 Jan 2008 23:30:31 +0000 (UTC) (envelope-from news@nermal.rz1.convenimus.net) Received: from nermal.rz1.convenimus.net (sub87-230-112-211.he-dsl.de [87.230.112.211]) by dd17730.kasserver.com (Postfix) with ESMTP id EE33218843D68 for ; Mon, 14 Jan 2008 00:30:30 +0100 (CET) Received: by nermal.rz1.convenimus.net (Postfix, from userid 8) id B40D515217; Sun, 13 Jan 2008 23:57:55 +0100 (CET) To: freebsd-questions@freebsd.org Path: not-for-mail From: Christian Baer Newsgroups: gmane.os.freebsd.questions Date: Sun, 13 Jan 2008 23:57:55 +0100 (CET) Organization: Convenimus Projekt Lines: 36 Message-ID: NNTP-Posting-Host: sunny.rz1.convenimus.net X-Trace: nermal.rz1.convenimus.net 1200265075 29850 192.168.100.5 (13 Jan 2008 22:57:55 GMT) X-Complaints-To: abuse@convenimus.net NNTP-Posting-Date: Sun, 13 Jan 2008 22:57:55 +0000 (UTC) User-Agent: slrn/0.9.8.1 (FreeBSD/6.2-RELEASE-p9 (sparc64)) Subject: 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: Sun, 13 Jan 2008 23:30:32 -0000 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? Regards, Chris