Re: Unix equivalent of Dos commands

From: Bill Vermillion (bv_at_wjv.comREMOVE)
Date: 06/26/03


Date: Thu, 26 Jun 2003 05:24:51 GMT

In article <bdcp5h$oq5$1@news.tdl.com>,
justin <justin_robbs@NO_SPAMhotmail.com> wrote:
>
>-snip-
>
>> Writing directly to a user's tty device may work, but probably won't on a
>> properly configured system since it has many security implications.
>
>I am just trying to write a string of data to an output only device
>connected via a serial port.
>
>>(how would you like to be running as root and have your F1 key
>>reprogrammed to send ``rm -fr /'')?
>
>That would suck. I have done enough stupid stuff myself without having to
>worry about that.
>
>One time running as root I typed
>l /tmp
>and thought I don't need that stuff so I typed
>rm -fr *
>and walked away to get a drink, unfortunately, local dir was /
>not pretty.

This is why even on SCO systems I change root's home directory
to /root. I just don't think any local directory should be /
anymore.

I've walked into too many places where I got called for help and /
was full of things from user aps, etc.

Making /root the home for root will ensure than an accidental cd
with no arguments will not place you in a dangerous place.

-- 
Bill Vermillion - bv @ wjv . com