27

Intended to type
sudo chown -R name:name ./*
Instead typed
sudo chown-R name:name /*

Comments
  • 7
    inb4 missed period jokes
  • 3
    @Jynx yeah it took me about two hours to recover from that little typo
  • 2
    What is chown-R?
  • 1
    @daniello yeah hes lucky linux doesn't recognize that command.

    Btw. Same thing i did! I posted about my chmod adventure this week ;)
  • 0
    Hey, at least it wasn't a rm
  • 3
    @raymsmith if you want to chown the current directory and all children, you just need to do
    chown -R user:group .

    No need for ./*
  • 0
    If you're using rpm based distro, you can google about it to restore file ownership, did it once on centos and it worked well
  • 0
    @gilgameshcoder It was on an ubuntu box but luckily I caught my mistake before it did too much damage.
  • 2
    @Shodan lol, if it had been rm I wouldn't have ranted about it. I'd still be lying in the fetal position questioning my life.
Add Comment