4 ms·
I accidentally recursively chown'ed / to myself on a server in Antarctica that was a critical gateway for our geophysical network, the night before we were plan
by foobarbecue 7y ago
I accidentally recursively chown'ed / to myself on a server in Antarctica that was a critical gateway for our geophysical network, the night before we were planned to leave the ice. Luckily, my flight was delayed... I spent the next day wiping the server and setting it up from scratch, after giving up on trying to recover from all the bizarre problems that stem from owning all the system files (including broken ssh). You should try it sometime!
- JKirchartz 7y agoI did this on a VM once - it's fun for about 15 minutes... then burn it all and start from scratch.
- ianai 7y agoIs there a way to save and revert such metadata? I can’t think of anything that stores just FS metadata.
- BenjiWiebe 7y agoI think rsync has an option to copy everything but file contents. Couple that with 'find' running 'touch' and it should be fine. (create blank files, copy attributes to them)
- Lammy 7y agoFreeBSD does! You can rescue yourself from this with mtree. Something like: > cd / > mtree -U -f /etc/mtree/BSD.root.dist > mtree -U -f /etc/mtree/BSD.var.dist > mtree -U -f /etc/mtree/BSD.include.dist > mtree -U -f /etc/mtree/BSD.sendmail.dist > mtree -U -f /etc/mtree/BSD.usr.dist
- mondoshawan 7y agoI did something similar on a central box used for mail aliases, cron jobs, and kerberos called "cartman" by copying and pasting a cronjob line at a root shell. I only noticed when things started failing, and spent the next day rebuilding the permissions all over the disk. chmod -R is powerful. :-)
- Balgair 7y ago> You should try it sometime! An overnight mission at McMurdo or a server reset without internet access on another device? I'll take the overnight.
- shifto 7y agoSysadminning in Antarctica. This really speaks to the imagination! Can't imagine how different it would be from my normal sysadmin work.
- foobarbecue 7y agoYou should meet Holly, who was the main McMurdo sysadmin most of the seasons I was there. I can't remember his last name but that guy was really wonderful. Super competent, friendly, and seemed to love his job.
- shifto 7y agoWish I could! But my Google-fu turns up empty. You'd think working on Antarctica would make it easier to find someone on LinkedIn e.g.