I'm so scared. I accidentallyanon@toaster:~$ rm -rf $UNDECLAREDVAR/*
I stopped it somewhere in /etc. My debian jessie system is still running, but there's a thunderstorm outside. I have god knows how many minutes to figure out how much damage a nonroot user can do with that command and fix it. Halp.
if you're not retarded and permissions were set correctly you're fine
also you're gay kill yourself
>>61328855
I haven't changed any permissions. But I suddenly have many missing icons, and image files open in firefox. At least the storm moved on, so I have time to puzzle this out.
If you have a Jessie ISO you could try installing it in a VM then seeing the difference in the two from the root directory and if all it did was delete some icons and shit then you can just copy them from the VM
>>61328197
If you are serious I'd suggest backing up your data and reinstalling OS
>>61329056
I have a system image from a few months ago I can use, if nothing else, but I don't wanna electrocute myself or even freeze my system putting the HDD in very badly. I triedroot@toaster:/home/anon# debsums -ac
It found one missing doc file that I'm reasonably sure is my doing. It also listed some config files that are still there and have manual edits I remember making. I assume if vital things were missing, it would say something else. One of the missing icons is something I cooked up myself, and both it and the~/.local/share/applications/gaysex.desktopfile are intact.
>>61329110
My data is backed up, but my last system image is months old. I don't have a good grip on everywhere debian puts it's user config files, so it would be a pain to restore my toaster to maximum efficiency by trial and error.
>>61328197
>@toaster
>>61328197
shoulda ${UNDECLAREDVAR:?}
scrub
>>61328197
If it only touched /etc then it probably failed because root owns etc, you should list all the directories it touched then check if your user has permissions for them.
For some god damned reason, my ~/.config directory got flattened. One of my missing icons was in there, and mimeapps.list lives there. Timestamps suggest to me that what was there was created by running processes since my failure. Restoring it from my shallow settings backup fixed the visible problems thus far, but how in the unholy fuck did that happen in the first place? I did runroot@toaster:/home/anon# apt-get update && apt-get -s dist-upgrade | grep "^Inst" | grep -i securi | awk -F " " {'print $2'} | xargs apt-get install
before installing debsums. That shouldn't delete ~/.config should it? It never has before.
>>61329534
I know, right?
>>61329660
>you should list all the directories it touched
I'm not sure how to do that. I didn't tee the output of my shame to a logfile or anything. I have a fraction of it left in my xterm buffer:rm: cannot remove ‘/etc/locale.gen’: Permission denied
rm: cannot remove ‘/etc/ld.so.cache’: Permission denied
rm: cannot remove ‘/etc/resolv.conf’: Permission denied