@[email protected] to [email protected]English • 8 days agoI never had problems with permission again after I know the real power of sudolemmy.caimagemessage-square111fedilinkarrow-up1644
arrow-up1644imageI never had problems with permission again after I know the real power of sudolemmy.ca@[email protected] to [email protected]English • 8 days agomessage-square111fedilink
minus-square@[email protected]linkfedilinkEnglish48•7 days agoHad an idiot “fix” a permission problem by running “sudo chmod -R 777 /” And that is why sudo privileges were removed for the vast majority of people.
minus-square@[email protected]linkfedilink9•7 days agoseems reasonable to me, root is just a made up concept and the human owns the machine.
minus-square@[email protected]linkfedilink15•7 days agoOh… That sounds like a nightmare. How do you even fix that? There’s no “revert the entire filesystem’s permissions to default” button that I’m aware of
minus-square@[email protected]linkfedilink6•7 days agoIf you are lucky your system is atomic or has other roll back feature. Otherwise it’s reinstall time. I guess you could set up a fresh system, run a script that goes through each folder checking the permission and setting it on the target system.
minus-square@[email protected]linkfedilinkEnglish1•7 days agoI think they had to reinstall. It was part of a Hadoop cluster and that was extra finicky.
minus-square@[email protected]linkfedilinkEnglish5•7 days agoShared this before, but someone I know did a chmod on /bin which nuked all the SUID/GUID bits which borked the system lol. Surpsingly easy enough to undo by getting a list of the correct perms from a working system, but hilarious nonetheless
Had an idiot “fix” a permission problem by running “sudo chmod -R 777 /”
And that is why sudo privileges were removed for the vast majority of people.
seems reasonable to me, root is just a made up concept and the human owns the machine.
Oh… That sounds like a nightmare. How do you even fix that? There’s no “revert the entire filesystem’s permissions to default” button that I’m aware of
You restore the system from backup
If you are lucky your system is atomic or has other roll back feature. Otherwise it’s reinstall time.
I guess you could set up a fresh system, run a script that goes through each folder checking the permission and setting it on the target system.
I think they had to reinstall. It was part of a Hadoop cluster and that was extra finicky.
deleted by creator
Shared this before, but someone I know did a chmod on /bin which nuked all the SUID/GUID bits which borked the system lol.
Surpsingly easy enough to undo by getting a list of the correct perms from a working system, but hilarious nonetheless