I vaguely thought I posted in this thread back then. Back in 1984/5, I had a directory in my homedir called "etc" for of miscellaneous stuff. One day I thought: that's a bad name, I should remove it. I errantly typed "rm -rf /etc". Thankfully I got a "Permission Denied" error. Except, I then did the obvious override, "sudo rm -rf /etc" (1). This was on a VAX 11/780 with about 50 undergrads doing project work on. The…
When did it become ubiquitous? I first got root privs via sudo on a *nix system in 1991 or so, and I remember it being widely deployed even then.
Unix Admin Horror Story Summary (1992)
71–80 of 94 posts
Re: Unix Admin Horror Story Summary (1992)
#72Earlier quoted context omitted.
How did you fix it?
not op but we recently wanted to mount nfs and the sysadmin was adamant we use automounter[0] instead of fstab because if the nfs mount is not available it can hang the kernel. Not sure if it is true or just sysadmin lore but was interesting enough to learn about a alternative. [0]: https://linux.die.net/man/8/automount
Re: Unix Admin Horror Story Summary (1992)
#73This one made me LOL: My mistake on SunOS (with OpenWindows) was to try and clean up all the '.*' directories in /tmp. Obviously "rm -rf /tmp/*" missed these, so I was very careful and made sure I was in /tmp and then executed "rm -rf ./.*". I will never do this again. If I am in any doubt as to how a wildcard will expand I will echo it first. I read this, and just had to go try it because I couldn't picture it in my…
$ bash -c 'cd /var/empty; echo .*'
. ..
but $ ksh -c 'cd /var/empty; echo .*'
.*
Seems some ksh dev got bitten and restricted this ...Re: Unix Admin Horror Story Summary (1992)
#74Re: Unix Admin Horror Story Summary (1992)
#75I love this. It takes us back to a time when administering a Unix system was a Big Deal. Partly because they were rare and expensive. But also they were truly multi-user with dozens of people logged in at any given time.
They still are a big deal, only you can manage up to thousands of them and with modern automation, if you screw up one, you screw up all of them.
Re: Unix Admin Horror Story Summary (1992)
#76Re: Unix Admin Horror Story Summary (1992)
#77Ironically, while I love Unix, I have spent most of my career shepherding Windows boxes. The only real horror story I got was a new coworker (turning me from "the IT guy" into "half the IT department") who looked through the Active Directory tree and found the GPO management part had replicated the organizational structure. Since there were no GPOs at the time, he considered this wasteful and confusing, so he went an…
This story worked out surprisingly well, usually, not so much (:
And we were extremely lucky that the CEO was more interested in preventing such an outage in the future than in playing the blame game. I have a hunch this kind of situation can get really ugly once people start loosing their cool.
Re: Unix Admin Horror Story Summary (1992)
#782003 or 2004. Customer called in and said that his dedicated server was hacked. I restored from backup. An hour later, he calls back. Hacked again . Restored again. An hour later, he calls back. He realizes that the hacker is him ! He's doing a thing, but doesn't know what he's doing wrong. So I have him email me the last thing he typed on his server, as root: rm -rf /home/user/path/to/thing /home/otheruser/path/to/s…
rm -f * ~
instead of rm -f *~
Is it weird to feel nostalgic about this kind of thing?Re: Unix Admin Horror Story Summary (1992)
#79Earlier quoted context omitted.
Is there a rm variant that bundles an undo command?
There's a few ways to solve this: + a command that doesn't actually delete but rather moves the file to a trash folder that gets emptied periodically (this is exactly how a desktop environments work) + a command that removes the inode but leaves the data intact. This could get pretty messy pretty quickly on SSDs. + `rm` behaves as normal but you restore the file using forensic tools / file recovery tools. Similar pro…
Re: Unix Admin Horror Story Summary (1992)
#802003 or 2004. Customer called in and said that his dedicated server was hacked. I restored from backup. An hour later, he calls back. Hacked again . Restored again. An hour later, he calls back. He realizes that the hacker is him ! He's doing a thing, but doesn't know what he's doing wrong. So I have him email me the last thing he typed on his server, as root: rm -rf /home/user/path/to/thing /home/otheruser/path/to/s…
That was surprisingly subtle. I had to look at it about 3 times before I saw the problem.