Re: Restoring /etc/inittab
On Thu, 29 Apr 2004 22:10:17 +0200, Monique Y. Mudama wrote:
> On 2004-04-29, Thomas Adam penned:
>>
>> --- Shaun Jackman <sdj@sfu.ca> wrote:
>>
>>> To answer your other question, I did something along the lines of...
>>>
>>> rm passwd~ *
>>
>> Well that was stupid!
>
> [snip]
>
>>
>> The reason that happend was because you had a space after the
>> 'passwd~', hence the shell globbed everything in /etc, and replaced it
>> with all the filenames contained therein.
>>
>> What you should have done was:
>>
>> rm *~
>>
>>> I have -i aliased into cp, mv, and rm, so I don't know how it
>>> happened! If my system ever boots again, I'll be browsing through the
>>> .bash_history.
>>
>> No need, I've just told you why. :) The lesson here is *don't* do
>> anything as root until you are sure.
>
> Um, no, you haven't. If rm is aliased to 'rm -i' in root's environment,
> it should have prompted. Unless he neglected to mention that he
> actually did 'rm -rf' ...
I've noticed that sudo doesn't expand bash aliases, so for me that doesn't
work.
--
I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.
My key was last signed 10/14/2003. If you use GPG *please* see me about
signing the key. ***** My computer can't give you viruses by email. ***
Reply to: