Lemmy.eus
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
unsaid0415@szmer.info to Linux@lemmy.mlEnglish · 2 years ago

You can't cd or ls in a folder if you have no +x permissions on it. That is all. I wasted 3 hours of my life.

message-square
message-square
122
fedilink
665
message-square

You can't cd or ls in a folder if you have no +x permissions on it. That is all. I wasted 3 hours of my life.

unsaid0415@szmer.info to Linux@lemmy.mlEnglish · 2 years ago
message-square
122
fedilink
  • neonred@lemmy.world
    link
    fedilink
    arrow-up
    44
    arrow-down
    9
    ·
    edit-2
    4 months ago

    deleted by creator

    • THE_STORM_BLADE@lemmy.world
      link
      fedilink
      arrow-up
      46
      ·
      2 years ago

      For anyone that didn’t recognise this as a joke, do not do this!

      • DogMuffins@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        6
        ·
        2 years ago

        Oh. Ok. Should I undo it then?

        • redprog@feddit.de
          link
          fedilink
          arrow-up
          12
          arrow-down
          1
          ·
          2 years ago

          Yeah just hit Ctrl + Z and you should be fine

      • Synthead@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 years ago

        Yup, this will pretty much destroy your system.

        • SorteKanin@feddit.dk
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          Actually curious how though - I mean won’t it just let all programs/users access everything? Or do some system stuff rely on permissions for certain behavior?

          • palordrolap@kbin.social
            link
            fedilink
            arrow-up
            3
            ·
            2 years ago

            Theoretically yes, but yes, in that order.

            I’ve worked with Linux for decades at this point and I’m still not 100% sure exactly what breaks; it’s a mistake you make once, if at all, and you’ll only get a little way into even trying to figure out how to fix things before you throw your hands up in disgust and reinstall / restore the OS (or whatever subdir was affected).

            If I was to hazard a guess, it’s the kernel itself that balks, but there are other, almost as fundamental things (lib*.so files and the like) that may also be deliberately fussy.

          • Tekhne@sh.itjust.works
            link
            fedilink
            arrow-up
            3
            ·
            2 years ago

            SSH will definitely break, I’ve had this issue before. If your private key in the .ssh dir is too open, ssh won’t let you use it.

          • Phrodo_00@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            2 years ago

            I actually don’t know how many programs do this, but several check that file permissions are correct or refuse to work. Sudo and ash are 2 of them. I could see /etc/shadow being readable and writable by everyone being a problem too, but I don’t know.

          • Cysio@lemmygrad.ml
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            Some things refuse to run with too broad permissions

      • stolid_agnostic@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Edit removed it. What was it?

        • neonred@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          4 months ago

          deleted by creator

    • MTK@lemmy.world
      link
      fedilink
      arrow-up
      22
      arrow-down
      1
      ·
      2 years ago

      This is so useful! Now I can just run:

      rm -rf /

      Without the sudo!

      • neonred@lemmy.world
        link
        fedilink
        arrow-up
        13
        ·
        edit-2
        4 months ago

        deleted by creator

    • lseif@sopuli.xyz
      link
      fedilink
      arrow-up
      20
      ·
      2 years ago

      the 777 stands for ‘lucky jackpot number’, as in ‘youre lucky if you dont break your entire system’

      • neonred@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        4 months ago

        deleted by creator

    • state_electrician@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      10
      ·
      2 years ago

      That’s all true, except when I send you a command. You can totally trust me and just run it.

      • 1847953620@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        2 years ago

        remove the French language pack, frees up space

    • drdiddlybadger@pawb.social
      link
      fedilink
      arrow-up
      6
      ·
      2 years ago

      I set 777 to my whole file system on a install of Ubuntu back in the day and it does indeed fuck the install in lovely ways. I didn’t bother attempting recovery. Nice learning experience.

      • chillytuna@universeodon.com
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        @drdiddlybadger @neonred I’ve had results with chmod -r +x /

    • caseyweederman@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Timeshift: hold my beertfs

      • neonred@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        4 months ago

        deleted by creator

    • Hotzilla@sopuli.xyz
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Better than 666, which I did once 20 years ago

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.17K users / day
  • 3.19K users / week
  • 4.81K users / month
  • 14.4K users / 6 months
  • 24 local subscribers
  • 59.6K subscribers
  • 7.71K Posts
  • 135K Comments
  • Modlog
  • mods:
  • nooter692@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org