Re: [SLUG] Simple question

From: Joey Dale (joey.dale@elkenserver.net)
Date: Sun Feb 29 2004 - 22:27:29 EST


Hear is a nother question. Everyone jokes about rm -rf / as root but
what would happen, (I know what the commad would do) what would happen
when it got to /bin/coreutils and removed rm?

Backward Thinker wrote:

>>What would happen if as root I did cat /dev/mem > /dev/null
>>
>>
>
>As non-root, permission denied... as root, not much.
>
>
>
>>cat /dev/null > /dev/mem
>>
>>
>
>Non-root, permission denied. Root, not much (/dev/null is treated as a zero length file, nothing is written to /dev/mem).
>
>For something spectacular to happen, you'll want to do cat something more intesting into /dev/mem, like /dev/zero. I just tried it on an old Packard Bell, it quickly rebooted back to the BIOS splash screen. Not sure if the result is hardware dependent or if they all do that. At any rate, probably best not to do bad things to /dev/mem if you filesystems mounted or hardware attached that you care a lot about ;).
>
>~ Daniel
>
>
>________________________________________________________________
>The best thing to hit the Internet in years - Juno SpeedBand!
>Surf the Web up to FIVE TIMES FASTER!
>Only $14.95/ month - visit www.juno.com to sign up today!
>-----------------------------------------------------------------------
>This list is provided as an unmoderated internet service by Networked
>Knowledge Systems (NKS). Views and opinions expressed in messages
>posted are those of the author and do not necessarily reflect the
>official policy or position of NKS or any of its employees.
>
>
>
>

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:21:11 EDT