adric: books icon (c) 2004 adric.net (Default)
adric ([personal profile] adric) wrote2003-09-03 10:15 pm

Oops.

Well, the damage seems contained now. Apparently root is supposed to own 90+ percent of the directories anyway. We'll see how the weekend goes..



I think I just hosed this machine completely.

Oh well, it was almost time to blow it out and reinstall it anyway. ;)

Apparently I did this wrong somehow:

from ~root

sudo chown -R root:root *

It seemed to take awhile, but I thought it just chewing on the bayesian spam database (ie .spamassassin) I had just cp'd from another users home. So I bg'd it. It started complaining about being unable to change /proc entries a few moments later, and died. I tried to mutt (to see if spama was working) and got told I couldn't read /var/mail/adric. Uh, oh.

I su'd up. Everything (before proc) is now owned by root. I fixed the /home dirs, and my mail dir, but .. there's no way of reverting the perms changes I inadvertedly made. Hosed. Another one lost to imprudent use of wildcards when root.

Uh, [livejournal.com profile] techman_dsc? *smile* /home is okay, but the rest needs a fresh new coat of sarge ;)

Ooh, NASTY...

[identity profile] ercutio.livejournal.com 2003-09-07 05:04 pm (UTC)(link)
Got nailed by an errant wildcard one time myself. I was drowsy, and I su-ed to root in /usr/src/someapplication, where a bunch of directories beginning with "." had been inadvertently placed when one of the GUI file managers fucked up.

Now, another thing you need to know: this particular distro had this nasty thing about putting 'alias rm rm -f' in the standard .profile-- even for root. This was one of those custom distros, back in 1999, when there were about 2000 distros for everybody on the planet. I think (in all seriousness) that the main developers were Slovenian-- maybe that'll help me track it down.

Anyhow, how do you get rid of a bunch of directories that begin with the character "."?

By typing "rm .*", of course. Never mind those "." and ".." directories, right?

Right. Thank god for backups; I killed it just in time to save /home and parts of /usr-- nothing else.

Best of luck to you on getting everything un-fucked-up. I feel your pain, and I'm rooting for ya.

[identity profile] ptwarhol.livejournal.com 2003-09-08 07:10 am (UTC)(link)
email me.
-Rick
ptwarhol@yahoo.com You have 12 hours to comply