oriond@lemmy.mlcake to Asklemmy@lemmy.ml · 1 year agoWhat is the most destroying command you can type in the Linux terminal?message-squaremessage-square145fedilinkarrow-up1162arrow-down19
arrow-up1153arrow-down1message-squareWhat is the most destroying command you can type in the Linux terminal?oriond@lemmy.mlcake to Asklemmy@lemmy.ml · 1 year agomessage-square145fedilink
minus-squareutopianfiat@lemmy.worldlinkfedilinkEnglisharrow-up14·1 year agoI imagine if you can mount from a busybox possibly
minus-squaregrabyourmotherskeys@lemmy.worldlinkfedilinkarrow-up8·1 year agoThen figure out the correct perms.
minus-squareCalicoJack@lemmy.dbzer0.comlinkfedilinkarrow-up13·1 year agoEh, just hit it with the 777 and pray. Then swear at it some more.
minus-squarerattking@lemmy.mllinkfedilinkarrow-up5·1 year agoI’m not sure how you will execute chmod again after being set 000. This is pretty diabolical.
minus-squareLrdThndr@lemmy.worldlinkfedilinkarrow-up4·1 year agoBoot from a usb stick, mount the fs, use the live environment’s chmod command to fix stuff.
minus-squaregrabyourmotherskeys@lemmy.worldlinkfedilinkarrow-up2·1 year agoThis is the traditional method.
minus-squareutopianfiat@lemmy.worldlinkfedilinkEnglisharrow-up4·1 year agoYeah that’s the painful part. A backup would be key here
minus-squareintensely_human@lemm.eelinkfedilinkarrow-up1·1 year agoWorst case you boot up a virtual server with the same OS as your own and just go down the tree learning permissions, and it’s a deep dive learning experience.
minus-squarefossphi@lemm.eelinkfedilinkEnglisharrow-up1·1 year agochroot in and then syncing the permissions from something like the equivalent of filesystem package in Arch for your distro should get you going
Can you recover from that?
I imagine if you can mount from a busybox possibly
Then figure out the correct perms.
Eh, just hit it with the 777 and pray. Then swear at it some more.
I’m not sure how you will execute chmod again after being set 000. This is pretty diabolical.
Boot from a usb stick, mount the fs, use the live environment’s chmod command to fix stuff.
This is the traditional method.
Yeah that’s the painful part. A backup would be key here
Worst case you boot up a virtual server with the same OS as your own and just go down the tree learning permissions, and it’s a deep dive learning experience.
chroot
in and then syncing the permissions from something like the equivalent offilesystem
package in Arch for your distro should get you going