I accidentally chmod 777d my whole system what do I do

I accidentally chmod 777d my whole system what do I do

Attached: fuck.png (207x25, 2K)

Reinstall Gentoo

Just close all ports except SSH.

chmod it again but 775 your welcome /thread
based and redpilled

Nothing, enjoy not having to sudo for anything.

sudo rm -rf /
fixes everything

this

I wanna see you do privileged syscalls without being root

fpbp and /thread

chmod -R 666 /*

then the devil can own it

whats rule 2 of sudo

find / -type d -exec bash -c 'chmod 755 "{}"' \;
find / -type f -exec bash -c 'chmod 644 "{}"' \;
chmod -R 755 `echo $PATH | tr : ' '`


This will fix the permissions for 98% of the files (there may be some executables in /var, /usr/share and ~ and they won't be accounted for)

--no-preserve-root

ctrl + z

My login shell is su

ah yes, i also did this once by mistake when i was just starting with GNU systems. everything broke, i just reinstalled my distro

You can fix it, but be you'd better just reinstalling the systems.
You'll probably fix just ~98% of your system and it will backfire later

restore last snapshot.

Restart, all the sys permissions are fixed by default.

For the other files you can later see the modified date and change them to 755 or what you need.

i couldn't figure out how to get permission on my external hdd (had read only, i think) and put a bunch of chmod commands in and now i can't even access the drive like i bricked it.

I know the data is still there but i'm too lazy to fix it now. The drive doesn't even show up at this point. Any ideas?

See

but that's wrong you fucking retard

No, it's not. Fucking reddit.

>babys first post

>is incorrect
>screams reddit
every time

>chmod 777 -R /bin /lib
>chmod: changing permissions of '/bin': Read-only file system
Feels good being immutable

Being this slow.

time to go back now