Quick fix to permissions issues in Linux

FYI, if users complain about permissions, try this command so you can get back to browsing Lemmy and tell them to fuck off.

chmod 777 -R /

10 points · 4 comments · view on lemmy.world

4 Comments

IOu1@sh.itjust.works · 2 pts · 3y (2 replies)

No sir, you're doing it wrong. This is being done without security in mind. That way, just anyone can execute anything.

chmod 666 -R / is the way.

Edit: remember to run as root

gizmonicus@sh.itjust.works · 2 pts · 3y (1 reply)

Pish posh. If security is your game, chmod 000 -R / is your game. Don't forget to run iptables -A input -i any -j DROP to stop those ne'er-do-wells on the LAN from fuckin up your server with their filthy, virus infested client machines.

IOu1@sh.itjust.works · 2 pts · 3y

this guy securitys!!! also block port 22 on your firewall so nobody can access SSH.

roomey@sh.itjust.works · 1 pts · 3y

I did this on my own box once.... It was a pain to repair and I probably didn't do it right. It was Gentoo too so... Yep, great fun