I removed my permissions on my downloads folder using chmod.

can anyone help restore back to default?

Thanks!

  • @Another_usernameOP
    link
    33
    edit-2
    8 months ago

    Thanks y’all! chmod 755 worked! Back to drwxr-xr-x

    • @[email protected]
      link
      fedilink
      268 months ago

      Tip: you can also use chmod u+rwx,g+rx,o+rx etc to add permissions

      With the initial letters corresponding to “user”, “group” and “other”, and ®was, (w)rite, e(x)ecute for the rest.

      In the case of directories, x specifies access to files/etc within the directly (read just let’s you see them)

      You can also use i.e “o-rw” etc etc to remove existing permissions

      • @[email protected]
        link
        fedilink
        English
        58 months ago

        If you use X instead of x it’ll add execution permission to directories without making files executable.

        • @[email protected]
          link
          fedilink
          18 months ago

          Oh yeah I forgot to mention that. It’s important when using wildcards or recursive permissions!