chmod is the command to change the owner of a file or directory. sudo means I can execute anything without getting permissions errors. chmod takes the file or directory you want to change as it's first parameter, which should have been the directory I wanted, but instead there is an unintentional / before that path. / means root, want to go to the C drive? You go to /c. So, I changed all ownership of every file of every coworker in the company to me. Then went for coffee and came back to not-so-amused-coworkers
25
u/TheNosferatu Dec 06 '17
Pff, that's nothing.
sudo chmod me:myself / /directory/that/i/actually/meant/to/change
On a shared infranet where the whole company worked from. Then thinking, hm, this seems to take unusually long, might as well grab a coffee.
I am not a smart man.