From owner-freebsd-questions@FreeBSD.ORG Thu Jul 28 09:25:09 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 451AF16A41F for ; Thu, 28 Jul 2005 09:25:09 +0000 (GMT) (envelope-from nospam@mgedv.net) Received: from mgedv.at (www.mgedv.at [195.3.87.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC8C543D45 for ; Thu, 28 Jul 2005 09:25:07 +0000 (GMT) (envelope-from nospam@mgedv.net) Received: from metis (localhost [127.0.0.1]) by mgedv.at (SMTPServer) with ESMTP id 096B3186800 for ; Thu, 28 Jul 2005 11:25:05 +0200 (MEST) From: "mdff" To: Date: Thu, 28 Jul 2005 11:25:05 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Thread-Index: AcWSMfFXh7yQ2E6dR1SJo/qSBmG0OwBIswxA In-Reply-To: <20050726183029.M97284@neptune.atopia.net> Message-Id: <20050728092506.096B3186800@mgedv.at> Subject: RE: cat /dev/urandom X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nospam@mgedv.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2005 09:25:09 -0000 > shell# cat /dev/urandom > > can that executed as root cause any harm to the system? What > if a random > sequence of `rm *` was generated... would it be executed? > the question is: WHAT FOR should someone logged in as root execute "cat /dev/urandom" without redirecting the output? anyway, from my experience of "trying" this a few times (it does not matter if on a local console or using a ssh-client) sometimes there's code left in the commandline afterwards and if you hit enter, it's executed... directly executed strings i've also seen. for now, i didn't have the occurrence of any system-command being generated, but that's random... the unlucky one would get it asap ;-) if you like to get RANDOM content anywhere use dd instead of cat. example to erase a whole disk i'd type: dd if=/dev/urandom of=/dev/ bs=1024k be sure that the devicefile exists, or you'll fill up your /root fs. br...