Disclaimer: Do not run this command.

1st pane: A person whispering to another's ear, captioned "sudo chmod -R 777". 2nd pane: An arm getting goosebumps.
you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 year ago (3 children)

What exactly does that command do

  • source
  • parent
  • hideshow 3 child comments
  • [–] 7 points 1 year ago (1 child)

    It sets permissions (ch ange modification rights) on all files (-R = recursive, stepping down through directories) in the file system (hence starting at /) so that they can be read, (re)written and executed as programs by all users (the 777 part). 000 would be no permissions for anyone (except for the root user), which would be just as bad.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 year ago

    Excellent summary. Just as a bit of trivia I'll add that Linux file permissions go like r w x (read write execute) = 4 2 1, so taken all together a 7 means the indicated user can do all those operations.

    And yeah, it breaks your system in surprising ways. Most people would just have to start over.

  • source
  • parent